I want to strip a 4000-line HTML file from all the jQuery "done" attributes in a div.
You almost had it! Unfortunately, the complete solution in Notepad++ would have to be a 3 step process.
Regex search/replace with the following search: \
\<
represents the "beginning of a word".)
Select the portion of text affected by your previous search/replace. You don't want to select the entirety of your document, because we're going to...
Strip newlines. Hit Ctrl-F to bring up the Search/Replace dialog again and this time select "Extended" search mode, instead of "Regular expression". Depending on the format of your document you are going to want to search for either \n
or \r\n
. The replacement field should, again, be empty. Also, make sure that the "In Selection" checkbox is checked.
Click "Replace All" and you're done!