L
Lee Chapman
I am thinking about using a regex to parse a string of data. My regex is of
the form
(?'m1'string1)|(?'m2'string2)|(?'m3'string3) etc.
I can get a match through Match.Captures[0], but I can't seem to find anyway
to get the 'mx' information from the Capture object. Is this possible? I
don't want to have to test each Match.Groups["mx"].Success for all possible
mx's... How can I get the capture name from the match?
Thanks,
- Lee
the form
(?'m1'string1)|(?'m2'string2)|(?'m3'string3) etc.
I can get a match through Match.Captures[0], but I can't seem to find anyway
to get the 'mx' information from the Capture object. Is this possible? I
don't want to have to test each Match.Groups["mx"].Success for all possible
mx's... How can I get the capture name from the match?
Thanks,
- Lee