regex_match_all_c
native regex_match_all_c(const string[], Regex:pattern, &ret = 0);
| Parameter |
Description |
| pattern | The regular expression pattern. |
| string | The string to check. |
| ret | Error code, if applicable, or number of results on success.
See REGEX_ERROR_* defines. |
Matches a string against a pre-compiled regular expression pattern, matching all
occurrences of the pattern inside the string. This is similar to using the "g" flag
in perl regex.
-2 = Matching error (error code is stored in ret)
0 = No match.
>1 = Number of results.