GetRegexSubString Function

Returns a matched substring from a regex handle. Substring ids start at 0 and end at substrings-1, where substrings is the number returned by MatchRegex

bool GetRegexSubString(Handle regex, int str_id, char[] buffer, int maxlen)


Handle regex

The regex handle to extract data from.

int str_id

The index of the expression to get - starts at 0, and ends at substrings - 1.

char[] buffer

The buffer to set to the matching substring.

int maxlen

The maximum string length of the buffer.

Return Value

True if a substring was found, False on fail/error