G
Guest
I have placed html in the database. I am trying to capture items between two
text blocks.
The content string is like the following
</FONT><BR>
<BR>
<BR>
some text here<BR>
<A NAME="
I am trying to capture the 'some text here' with the following regex. I am
using the following reg expression however i believe i am having problems
with the carriage returns.
Dim ResultString As String
Try
ResultString = Regex.Match(SubjectString,
"<BR>(\r\n)<BR>(\r\n)<BR>(.*?)<BR>(\r\n)<A",
RegexOptions.Singleline).Groups(1).Value
Catch ex As ArgumentException
'Syntax error in the regular expression
End Try
When i run this in vb.net app resultstring is always ""
Any one have an idea of what i am doing wrong here?
thx
dave
text blocks.
The content string is like the following
</FONT><BR>
<BR>
<BR>
some text here<BR>
<A NAME="
I am trying to capture the 'some text here' with the following regex. I am
using the following reg expression however i believe i am having problems
with the carriage returns.
Dim ResultString As String
Try
ResultString = Regex.Match(SubjectString,
"<BR>(\r\n)<BR>(\r\n)<BR>(.*?)<BR>(\r\n)<A",
RegexOptions.Singleline).Groups(1).Value
Catch ex As ArgumentException
'Syntax error in the regular expression
End Try
When i run this in vb.net app resultstring is always ""
Any one have an idea of what i am doing wrong here?
thx
dave