I need to get all the possible matches for a given regular expression and word in c#. But the Regex.Matches() function is not giving it. For eg.
Regex.Matches("datamatics","[^aeiou]a[^aeiou]")
returns only two matches which are
dat
mat
it is not giving "tam" as a match. Can somebody explain to me why it is not giving "tam" as a match and how can I get all the three?