Jump to content

preg_match error making me go crazy


discussnow

Recommended Posts

$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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.