J
jason
I have following two regex expressions. I am trying to match in the
event that *EITHER* is found - combining with an OR. However, I can't
seem to get the syntax right.
Dim regexp2 as Regex = New Regex("a(.+)b", RegexOptions.IgnoreCase)
Dim regexp3 as Regex = New Regex("c(.+)d", RegexOptions.IgnoreCase)
The below code does NOT work as the compiler does not like that OR:
Dim regexp2 as Regex = New Regex("a(.+)b" or "c(.+)d",
RegexOptions.IgnoreCase)
Dim objMatch as Match
dim z as string
For Each objMatch in regexp2.Matches(x)
response.write(objMatch.ToString())
response.write("<br>")
Next
Thanks for any help or information.
event that *EITHER* is found - combining with an OR. However, I can't
seem to get the syntax right.
Dim regexp2 as Regex = New Regex("a(.+)b", RegexOptions.IgnoreCase)
Dim regexp3 as Regex = New Regex("c(.+)d", RegexOptions.IgnoreCase)
The below code does NOT work as the compiler does not like that OR:
Dim regexp2 as Regex = New Regex("a(.+)b" or "c(.+)d",
RegexOptions.IgnoreCase)
Dim objMatch as Match
dim z as string
For Each objMatch in regexp2.Matches(x)
response.write(objMatch.ToString())
response.write("<br>")
Next
Thanks for any help or information.