首頁  >  文章  >  後端開發  >  请问php处理html源代码方法

请问php处理html源代码方法

WBOY
WBOY原創
2016-06-13 10:34:04744瀏覽

请教php处理html源代码方法!在线等
例如:http://www.bengou.com/100408/pm10040810/index.html

其中部分html源代码为:

HTML code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->                    <div class="subsrbelist center" id="mhlist">                        <ul>                                                    <li>                                <a title="第8话" href="1270695200772/1270695200772.html" target="_blank">泡沫王子Prince Bubble <span class="red">(第8话)</span> (11页)</a>                                                                                            </li>                                                                <li>                                <a title="第7话" href="1270695205513/1270695205513.html" target="_blank">泡沫王子Prince Bubble <span class="red">(第7话)</span> (12页)</a>                                                                                            </li>                                                                <li>                                <a title="第6话" href="1270695210191/1270695210191.html" target="_blank">泡沫王子Prince Bubble <span class="red">(第6话)</span> (12页)</a>                                                                                            </li>                                                                <li>                                <a title="第5话" href="1270695217633/1270695217633.html" target="_blank">泡沫王子Prince Bubble <span class="red">(第5话)</span> (12页)</a>                                                                                            </li>                                                                <li>                                <a title="第4话" href="1270695221210/1270695221210.html" target="_blank">泡沫王子Prince Bubble <span class="red">(第4话)</span> (16页)</a>                                                                                            </li>                                                                <li>                                <a title="第3话" href="1270695226220/1270695226220.html" target="_blank">泡沫王子Prince Bubble <span class="red">(第3话)</span> (16页)</a>                                                                                            </li>                                                                <li>                                <a title="第2话" href="1270695230252/1270695230252.html" target="_blank">泡沫王子Prince Bubble <span class="red">(第2话)</span> (18页)</a>                                                                                            </li>                                                                <li>                                <a title="第1话" href="1270695233876/1270695233876.html" target="_blank">泡沫王子Prince Bubble <span class="red">(第1话)</span> (12页)</a>                                                                                            </li>                                                            </ul>                        <br class="clearall">                    </div>


如何通过php程序获取上述代码中
请教各位老师,在线等!!

------解决方案--------------------
preg_match('/
(.*?)/is',$s,$m);
陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn