Bit of a complicated query, for me anyway. lol
$url = 'http://www.cheapsmells.com/viewProduct.php?id=6590'; $html = file_get_contents($url); preg_match('/<div class=\'productOurPrice\'?>(.+?)(\d+\.\d+)(.+?)?<\/div>/', $html, $match); $out = $match;
Great, no problem!
However, this next url I need to code to is a bit trickier as the tag data is, well see below...
<div class="value"> £1.99 <font size="3"> </font></div>
All the whitespace is confusing me and I can't seem to apply the above to this now.
Any ideas would be very helpful.
PS. It's PHP encased