Regex.Match Method

Matches a string against a pre-compiled regular expression pattern.

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

Parameters

const char[] str

The string to check.

RegexError& ret

Error code, if applicable.

int offset

Offset in the string to start searching from. MatchOffset returns the offset of the match.

Return Value

Number of captures found or -1 on failure.

Notes

Use the regex handle passed to this function to extract matches with GetSubString().