View Single Post
Old 12-20-2022, 03:19 PM   #7
aknight2015
Junior Member
aknight2015 began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Dec 2022
Device: Galaxy Tab SM-T500
So, that will remove the whole link? <a href="words in here" title"=wikilink><a>?

Quote:
Originally Posted by Karellen View Post
If the string to remove is this, and lets assume there is a closing tag as well

PHP Code:
<a href="13th_Black_Crusade" title="wikilink"></a
Your search regex would be...
PHP Code:
<a href=".*?" title=".*?"></a
.*? = anything between the two quotation marks

But if there is something between the opening and closing tag that you need to save, you would use...
PHP Code:
<a href=".*?" title=".*?">(.*?)</a
and in the replace box you would use...

PHP Code:
\
aknight2015 is offline   Reply With Quote