Finds the matches of a regex in text, using JavaScript's RegExp.
RegExp
The regex, the text, the most matches to return, and whether each line is a separate entry.
The matches, or an error if the regex does not compile. Empty matches are reported once at each position, because matchAll steps past them.
matchAll
Finds the matches of a regex in text, using JavaScript's
RegExp.