regex-explain - v1.6.0
    Preparing search index...

    Function regex101Url

    • Builds a regex101 link that opens a regex in the JavaScript flavor, which is the engine this library explains and matches with.

      Parameters

      • source: RegexSource

        The regex.

      • OptionaltestString: string

        Text to match against; left out when empty.

      Returns string

      The link, with each value percent-encoded so that + and spaces survive.