Regex.MatchOffset Method

Returns the string offset of a match.

int MatchOffset(int match)

Parameters

int match

Match to get the offset of. Match starts at 0, and ends at MatchCount() -1

Return Value

Offset of the match in the string.