Any help is appreciated because I admit I am stuck. Here is the string that I am pulling in from the webpage:
<td valign="top"><span class="QuoteTableHeading">Price*</span><span class="QuoteTableData">124.14</span></td><td valign="top">
What I am trying to do is isolate the 124.14 portion of that string. This is of course not a static number but the remainder of the string is. The page has several lines like the above but the unique portions of this particular line are the Price* and the 124.14
Here is what I have so far:
<?php
$handle = @fopen("http://test.com/index.html", "r");
if ($handle) {
while (!feof($handle))
{
$buffer = fgets($handle, 4096);
if (preg_match(xxxxxxxxxxxxxx, $buffer, $match))
{
echo "A match was found. = " .$match[0];
}
else
{
echo "A match was not found.";
}
}
fclose($handle);
}
?>