[Notepad++ Question]
How do I use find-and-replace to replace the attribute of a series of tags using expression?
Case scenario:
Let's say I have a couple of lines of something like this:
<li><a title="Bla bla" href=
"http://www.url.com/etc">Text</a></li>
And I want to replace them with this:
<li><a title="Bla bla" href="">Text</a></li>
Note the new line and double tabs on the original.
Best Answer
Speaking specifically about the newline and double-tabs, using the Extended Searched Mode find:
and replace with:
And assuming you are wanting to remove the URL from the href, leaving a blank reference, you'll want to use the Regular expression Search Mode to find:
and replace with: