0
Access – <a href="http://extratorrent.cc/search/?search=Cotent">Torrent Search</a> – <a href="http://link1.com/Text">Link 1</a> – <a href="http://link2.com/Text">Link 2</a> – <a href="http://link3.com/Text">Link 3</a> – <a href="http://link4.com/Text">Link 4</a>
我想用正則表達式來使它像這樣
Access – <a href="http://extratorrent.cc/search/?search=Cotent">Torrent Search</a> – AAABBBCCC
我只知道</?a(|\s+[^>]+)>
刪除URL鏈接,但不知道如何正則表達式像上面的內容。
你最好。但是「/ /刪除所有鏈接期望第一」錯了我的意思,我想刪除所有後「... Torrent Search」,並添加一些文字後,如「... Torrent Search - AAABBBCCC」 – user7819129
@ user7819129我有編輯答案,如果沒關係,請檢查「V」並放好投票,謝謝 – ZiTAL
非常感謝! – user7819129