C#: Loop through substring patterns in a string
- by ilann
my pattern is the following:
{(code)}
where code is a number (up to 6 digits), or 2 letter followed by a number.
For example:
{(45367)}
{(265367)}
{(EF127012)}
I want to find all occurrences in a long string, I can't just use pure regex , because I need to preform some action when i find a match (like logging the position and the type of the match).