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

    Function findMatches

    • Finds the matches of a regex in text, using JavaScript's RegExp.

      Parameters

      • request: MatchRequest

        The regex, the text, the most matches to return, and whether each line is a separate entry.

      Returns MatchResponse

      The matches, or an error if the regex does not compile. Empty matches are reported once at each position, because matchAll steps past them.