discussnow Posted November 21, 2008 Share Posted November 21, 2008 $scrape = file_get_the_contents($url) ; $regex = '/<span class="url">(.+?)</span>/'; preg_match($regex,$scrape,$results); print_r ($results) ; It's saying there's an error on the preg_match line Warning: preg_match() [function.preg-match]: Unknown modifier 'p' in /home/toiletch/public_html/Scraper.php on line 30 Link to comment https://forums.phpfreaks.com/topic/133699-preg_match-error-making-me-go-crazy/ Share on other sites More sharing options...
genericnumber1 Posted November 21, 2008 Share Posted November 21, 2008 you didn't excape your delimiter in the </span> either escape the / in span or change your edge delimiter to something you don't use like % Link to comment https://forums.phpfreaks.com/topic/133699-preg_match-error-making-me-go-crazy/#findComment-695691 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.