Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Does anyone have any useful routines to parse HTML data

Status
Not open for further replies.

Dawhyte

MIS
Dec 6, 2002
3
GB
Hi All,
how can I parse a string by taking out data from a web
page's source code e.g in the code extract below, I would
like to take out the value &quot;6&quot; (before the &quot;<br>&quot; tag)
and take out &quot;(100%)&quot; from the line &quot;&nbsp;(100%)
&nbsp;&quot;. All these values appear in the first table cell
(<TD>) ...

**start of source code extract**

<table width=&quot;100%&quot; valign=&quot;bottom&quot; cellspacing=&quot;0&quot;
cellpadding=&quot;0&quot; border=&quot;0&quot;>
<tr>

<td valign=&quot;bottom&quot;
align=&quot;center&quot; class=&quot;QRVLTH&quot;>
6
<br>
&nbsp;(100%)&nbsp;
<br>

<img
border=&quot;0&quot; src=&quot;../ergraphics/vbar2.gif&quot; width=&quot;10&quot;
height=&quot;100&quot; border=&quot;0&quot;>

</td>

</tr>

**end of source code extract**

What functions would best be used for this type of
parsing. Has anyone created a function diverse enough to
handle this. Any help/sample source code will be much
appreciated.

Thanks in advance

Derek
.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top