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