I have the following html code that i want to search through
<td width="26" height="28" align="right">26.5</td>
<td width="25" height="28" align="right"> </td>
<td width="22" height="28" align="right"> </td>
<td width="91" height="28" align="right">283.2</td>
</tr>
</table>
<P></p>
<h3>1990-1999</h3>
<p>
The text that want is the 283.2 this number can be different it depends on what is on the web page im getting it from. So i did a fopen and fread on the page then tried the following eregi
$Grab = eregi("<td width=\"91\" height=\"28\" align=\"right\">(.*)</td>", $ReadFile, $Display);
Then i did a
echo $Display[1];
The first line of the echo was exactly what i needed but it also displays the rest of the page below the line i needed, which i didnt think i was selecting with the eregi expression that i used. All i want to get is the number 283.2 which lies between the html code
<td width="91" height="28" align="right">
AND
</td>
Also I checked to see if <td width="91" height="28" align="right"> resides anywhere else in the code and it doesnt.
Thanks for any help you could give me.
Ira