Rumah >pembangunan bahagian belakang >tutorial php >帮忙写个正则,该如何解决
帮忙写个正则
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><div class="abc def" id="aa"><p>正则要抓取的内容</p></div>
$s=<p>正则要抓取的内容</p><div class="aa">fasdf</div>txt;preg_match('/<div class="abc def">]*>(.*?)/is',$s,$m);echo $m[1];<div class="clear"> </div> </div>