0
页面代码的链接,我想改变这种使用的preg_match:查找用的preg_match
<li class="fte_newsarchivelistleft" style="clear: both; padding-left:0px;"><a class="fte_standardlink fte_edit" href="news,2480143,3-kolejka-sezonu-2014-2015.html">3 kolejka sezonu 2014/2015 »»</a></li>
<li class="fte_newsarchivelistright" style="height: 25px;">komentarzy: <span class="fte_standardlink">[0]</span></li>
要这样:
news,2480143,3-kolejka-sezonu-2014-2015.html
我该怎么办呢?我试图与preg_match但该链接太复杂...
呀,这样的作品,谢谢:) – user3898993 2014-09-01 15:19:48
@ user3898993:要是你想的正则表达式处理标记时,只记得:[它召唤Cthulhu](http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454)..这是一种传说中的答案:) – 2014-09-01 15:21:23
哈哈好吧,我会记得;) – user3898993 2014-09-01 16:44:09