I have this HTML tags :
<div class="title">Copy me if you can</div>
so I wanna use preg_match to take just "Copy me if you can" I'm using this preg pattern :
$preg = "<div class=\"title\">(.+?)</div>";
So I wrote this code
$match = preg_match($preg,$content);
The browser outputs :
Warning: preg_match() [function.preg-match]: Unknown modifier '('
What