Hi all,

I need urgent help regarding Regular Expression.

I m retieving whole page as HTML codes.

Now i want to retrieve code inside any perticular HTML tag like tr/div according to it's id.

I want to make use of regular expression but some how im not getting right result.

Dim reg As New System.Text.RegularExpressions.Regex("<tr id=""xyz""[^>]*>(?<innerValue>([^<].*))</tr>.*", RegexOptions.IgnoreCase Or RegexOptions.Compiled Or RegexOptions.Multiline)


e.g.

<html>
<table ...>
<tr id='xyz' style='....'><td> in XYZ</td> </tr>
<tr id='abc' style='....'><td> in ABC</td></tr>
</table>
</html>

i want inner value of tr e.g. "<td> in XYZ</td>" if id is 'xyz'
"<td> in ABC</td>" if id is 'abc'

I hope u understand.

thanks in advanced