e1seix Posted January 6, 2008 Share Posted January 6, 2008 <?php $url = "http://www.directcosmetics.com/resul...nim&code=14770"; $html = file_get_contents($url); preg_match('/<div class=\"value\">.*([0-9]+?\.[0-9]{2}).*<\/div>/Us', $html, $match); print $match[2]; ?> ??? Can someone point me in the right direction as to where my error lies to correct this regex? As always, it's very much appreciated Quote Link to comment Share on other sites More sharing options...
Ken2k7 Posted January 6, 2008 Share Posted January 6, 2008 Try: preg_match('/\<div class=\"value\"\>.*([0-9]+?\.[0-9]{2}).*\<\/div\>/Us', $html, $match); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.