function
regexp.captureall (shared-side)
Available since version: 0.3.0
This function finds all of the matches against the target regular expression.
It does exactly the same thing as regexp.capture but instead of catching the first match only, it gets all of them.
Declaration
[{begin, end}...]|null regexp.captureall(string str, startIndex=0 startIdx)
Parameters
string
str: the text against which the regular expression is matched.startIndex=0
startIdx: an optional character index within the string at which to start matching.
Returns [{begin, end}...]|null
an array containing all of the matches or null
if there were none.