Wednesday, June 21, 2017

'Select all from "X" to "Y" and replace with string "XnewstuffY"'

Sometimes you need to replace a type of element in your HTML or XML content. I recently had to replace all URLs in a file to placeholders (for Reasons :D ).
Here's how you do that in Notepad++ using regular expressions:
find: (href=).*(">)
replace: \1placeholder\2