I am trying to get data between HTML tags, but I am doing it wrong, as it is returning nearly all the source. :(
I modified the MSDN example to try and do it, but no success...
Dim r As System.Text.RegularExpressions.Regex
Dim m As System.Text.RegularExpressions.Match
r = New System.Text.RegularExpressions.Regex("<td.*>(.*)</td>", _
System.Text.RegularExpressions.RegexOptions.IgnoreCase Or System.Text.RegularExpressions.RegexOptions.Compiled)
m = r.Match(inputString)
While m.Success
MsgBox(m.Groups(1).Value.ToString)
m = m.NextMatch()
End While
I am trying to get what is in between <td (attributes here)> and </td>... what am I doing wrong?