Hi,
I'm trying to parse a <table></table> combination out of a HTML string.
Based to my own regex knowledge I defined the pattern as
Dim strTablePattern
strTablePattern = "<table someUniqueAttributes>(.*\r)*?</table>"
to get the first table out of
<table someUniqueAttributes>
<tr>
<td>
.....
</table>
<table>
....
</table>
However, if I apply it to the HTML string I get no matches.
Set HttpObj = Server.CreateObject("AspHTTP.Conn")
HTTPObj.Url = "myUrl"
strOrgContent = HTTPObj.GetURL
Set objRegExp = New RegExp
With objRegExp
..Pattern = strTablePattern
..IgnoreCase = False
..Global = True
End With
Set objMatches = objRegExp.Execute(strOrgContent)
If objMatches.Count > 0 Then
For Each expressionmatched in objMatches
Response.Write "<B>" & expressionmatched.Value & "</B> was matched at
position <B>" & expressionmatched.FirstIndex & "</B><BR>"
Next
End If
If I use the very same pattern in a different programming language I get the
expected results. Any ideas?
--
Marcel Stör
www.frightanic.com