Regex.CaptureCount Method

Returns number of captures for a match

int CaptureCount(int match)

Parameters

int match

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

Return Value

Number of captures in the match.

Notes

Use GetSubString() and loop from 1 -> captures -1 for str_id to get all captures