Basically I want to retrieve all possible substring matches with n characters from a string, Here's my initial code but it only returns 2 matches.
String input = "abc12345abcd";
Regex regex = new Regex(@"[A-Za-z]{3}"); //this will only return 2 matches
MatchCollection matches = regex.Matches(input);
How should I get the following matches using regex?
abc
abc
bcd
Is this possible, if not will LINQ help this?
Thanks,