Match returns the first match, see this for how to get the rest.
Instead, use Matches . Then you can use:
MatchCollection matches = Regex.Matches(text, search); Console.WriteLine("there were {0} matches", matches.Count);
Lazarus Jul 14 '10 at 12:52 2010-07-14 12:52
source share