The regular expression to be used for matching.
The string in which to search for a match.
The first match as an RexecYield object, or undefined if no match is found.
This function is a part of RegExp utilities.
rexecFirstMatch(/hello/g, 'hello world');;
//=> { match: 'hello', index: 0, input: 'hello world', groups: undefined }
Generated using TypeDoc
Returns the first match of a regular expression in a string.