首页 > 请教下如何写正则。

请教下如何写正则。

RT,如何写一段关于 <p></p> <p></p> 的正则。


$str="<p>4444</p> <p>555</p>";
$regex='/<p>(.*?)</p>/i';
preg_match_all($regex, $str, $content);
echo '<pre>';
var_dump($content[1]);


问题能详细一点么

【热门文章】
【热门文章】