id like to do something like
foreach (Match match in regex) { MessageBox.Show(match.ToString()); }
Thanks for any help...!
There is a RegEx.Matches method:
RegEx.Matches
foreach (Match match in regex.Matches(myStringToMatch)) { MessageBox.Show(match.Value); }
To get the matched substring, use the Match.Value property, as shown above.
Match.Value
1.4m articles
1.4m replys
5 comments
57.0k users