C#: Loop through substring patterns in a string

Posted by ilann on Stack Overflow See other posts from Stack Overflow or by ilann
Published on 2010-06-15T16:34:58Z Indexed on 2010/06/15 16:42 UTC
Read the original article Hit count: 152

Filed under:
|
|

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).

© Stack Overflow or respective owner

Related posts about c#

Related posts about regex