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 Link to comment https://forums.phpfreaks.com/topic/84775-regex-syntax/ 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); Link to comment https://forums.phpfreaks.com/topic/84775-regex-syntax/#findComment-432093 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.