1
首先我是PHP新手。php preg_match <a href>
通常情况下,我可以为<div class="T-time">(.*)</div>
做preg_match
标签和阅读内容,但我不能为做同样的事情:
<div class="T-date"> <a href=" different link ">123</a> </div>
是否有可能preg_match
标记为123
结果当链路<a href=>
标签中每次都不同?
从现在开始感谢。
我想你的意思['preg_match'] (http://php.net/manual/en/function.preg-match.php) – brbcoding
修正了很抱歉谢谢@brbcoding –
就像一个警告:http://stackoverflow.com/questions/1732348/regex-match-open -tags-except-xhtml-self-contained-tags –