Regex.MatchAll Method

Gets all matches from a string against a pre-compiled regular expression pattern.

int MatchAll(const char[] str, RegexError& ret)

Parameters

const char[] str

The string to check.

RegexError& ret

Error code, if applicable.

Return Value

Number of matches found or -1 on failure.

Notes

Use GetSubString() and loop from 0 -> totalmatches - 1.