Reply to thread

[VB]

foreach(Match match in Regex.Matches("<b>This</b> is some foobar text <b>bundled</b> up in a string...", @"(?i)(?<!\</?)b(?!>)"))

    Console.WriteLine("Match found at index {0}.", match.Index);

[/VB]




index 23 is the b of foobar.

index 35 is the b of bundled.


Isnt that what you want?


Back
Top