I think the best way to ask this question is to provide an example.
I have a string:
string line = "12345";
string pattern = "[0-9]{4}";
MatchCollection collection = Regex.Matches(line, pattern);
This will return ONE match in the collection: "1234". BUT, is there a way to get it to return "1234" AND "2345"? So I want the regular expression to not skip characters that have been already been matched.
I'm very new to regular expressions so any help would be greatly appreciated. Thank you.