• Matches a string with a regular expression, and returns an iterable of matches containing the results of that search.

    Parameters

    • regexp: RegExp

      A variable name or string literal containing the regular expression pattern and flags.

    Returns IterableIterator<RegExpExecArray>