我有这个 HTML 标签:
<div class="title">Copy me if you can</div>
所以我想用 preg_match 来接受“如果可以的话,请复制我”我正在使用这个 preg 模式:
$preg = "<div class=\"title\">(.+?)</div>";
所以我写了这段代码
$match = preg_match($preg,$content);
浏览器输出:
Warning: preg_match() [function.preg-match]: Unknown modifier '('
什么