I wonder if it is possible to get MatchCollection with all matches even if there's intersection among them.
string input = "a a a";
Regex regex = new Regex("a a");
MatchCollection matches = regex.Matches(input);
Console.WriteLine(matches.Count);
This code returns 1, but I want it to return 2. How to achive it?
Thank you for your help.