Returns an array of arrays in which the first element of each array is the match
and remaining elements are the capturing groups. Returns undefined
if the string has no match for regex. (This is different from
the built-in String.prototype.matchAll(), which returns null if there are no matches,
but more consistent with the conventions in the Flurp library.)
Remarks
Returned array contains additional properties with string indices as
per the underlying String.prototype.matchAll() implementation.
Returns an array of arrays in which the first element of each array is the match and remaining elements are the capturing groups. Returns
undefinedif the string has no match forregex. (This is different from the built-inString.prototype.matchAll(), which returnsnullif there are no matches, but more consistent with the conventions in the Flurp library.)Remarks
Returned array contains additional properties with string indices as per the underlying
String.prototype.matchAll()implementation.Example