<div class="codetitle"> <span><a style="CURSOR: pointer" data="46136" class="copybut" id="copybut46136" onclick="doCopy('code46136')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code46136"> <br><?php <BR>$url = 'http://www.baidu.com/zongzi/oo.html'; <br>$n = preg_match_all("/http:[\/]{2}[a-z]+[.]{1}[a-z\d\-]+[.]{1}[a-z\d]*[\/]*[A-Za-z\d]*[\/]*[A-Za-z\d]*[.]*html/",$url,$array); <br>var_dump($array); <br>?> <br> </div>