D
D. Patrick
I'm trying to find all occurrences of either:
<font color="red">Smith</font>
or
<font color="blue">Smith</font>
inside strIn which contains a lot of HTML and lot of possible lines like
above but sometimes those lines are green. I only want the matches that
are red or blue.
I can easily do this:
Dim strMatch as string = "<font color=""red"">Smith</font>"
Dim mc as System.Text.RegularExpressions.MatchCollection = _
System.Text.regularExpressions.Regex.Matches ( strIn, strMatch )
and that works for red. But how do I either merge a red match result with a
blue match result, OR somehow use regex better so it knows to match either
red or blue in a single pattern?
<font color="red">Smith</font>
or
<font color="blue">Smith</font>
inside strIn which contains a lot of HTML and lot of possible lines like
above but sometimes those lines are green. I only want the matches that
are red or blue.
I can easily do this:
Dim strMatch as string = "<font color=""red"">Smith</font>"
Dim mc as System.Text.RegularExpressions.MatchCollection = _
System.Text.regularExpressions.Regex.Matches ( strIn, strMatch )
and that works for red. But how do I either merge a red match result with a
blue match result, OR somehow use regex better so it knows to match either
red or blue in a single pattern?