G
graphicsxp
Hi,
I have to update a text field of a SQL table. For that I retrieve the
records in a dataset and I loop through the rows of the dataset. The
field is a very long text string that basically contains the source
code of html pages. I need to do the following on each record :
1. Find the <body> tag in the string. Problem is that the body tag
could look like:
<body onload="some func" ....> so I need to find <body and then the
next closing '<'.
2.Find the </body> tag in the string.
3. get rid of everything outside the <body></body> tags in order to
retain only the content of the html page.
How could I do that in vb.net ?
I have to update a text field of a SQL table. For that I retrieve the
records in a dataset and I loop through the rows of the dataset. The
field is a very long text string that basically contains the source
code of html pages. I need to do the following on each record :
1. Find the <body> tag in the string. Problem is that the body tag
could look like:
<body onload="some func" ....> so I need to find <body and then the
next closing '<'.
2.Find the </body> tag in the string.
3. get rid of everything outside the <body></body> tags in order to
retain only the content of the html page.
How could I do that in vb.net ?