Home  >  Article  >  Backend Development  >  正则-如何用php匹配出这段代码?

正则-如何用php匹配出这段代码?

WBOY
WBOYOriginal
2016-06-02 11:29:00880browse

正则phpcurl正则表达式javascript

有这样一段代码

<code> <div>
<div>
<span><span>网盘链接: </span> </span> <span><a href="/ntcweb?id=d866a750-9cec-430a-9ea0-5cfbd6a2007a&level=2&pg=webz&uID=thJP9WeIiHG9tvFy&g_ut=2&key=jgf&url=http%3A%2F%2Fpan.baidu.com%2Fs%2F1qX18Rky">http://pan.baidu.com/s/1qX18Rky</a> </span> </div> <div>
<p>我想把a标签里的http://pan.baidu.com/s/1qX18Rky匹配出来?<br>请问正则怎么写?</p>                                    </div>
</div></code>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn