Home  >  Article  >  php教程  >  PHP用正则表达式提取网页链接地址

PHP用正则表达式提取网页链接地址

WBOY
WBOYOriginal
2016-06-21 08:57:282478browse

如下面代码,用正则表达式提取其中的链接地址

以下是引用片段:

实际方法:

<table style="BORDER-RIGHT: #cccccc 1px dotted; TABLE-LAYOUT: fixed; BORDER-TOP: #cccccc 1px dotted; BORDER-LEFT: #cccccc 1px dotted; BORDER-BOTTOM: #cccccc 1px dotted" cellspacing="0" cellpadding="6" width="95%" align="center" border="0"> <tr> <td style="WORD-WRAP: break-word" bgcolor="#f3f3f3"> <font style="FONT-WEIGHT: bold; COLOR: #990000">以下是引用片段:</font><br>preg_match_all(’/(?</td> </tr> </table>



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