【发布时间】:2014-02-09 06:37:16
【问题描述】:
在这里,我正在寻找一个 PHP 中的正则表达式,它将锚点与特定的“target="_parent" 匹配。我想获得带有如下文本的锚点:
preg_match_all('<a href="http://" target="_parent">Text here</a>', subject, matches, PREG_SET_ORDER);
HTML:
<a href="http://" target="_parent">
<FONT style="font-size:10pt" color=#000000 face="Tahoma">
<DIV><B>Text</B> - Text </DIV>
</FONT>
</a>
</DIV>
【问题讨论】:
标签: php regex preg-match-all