Finding Line Beginning using Regular expression in Notepad++
I want to strip a 4000-line HTML file from all the jQuery "done" attributes in a div.
<DIV class=menu done27="1" done26="0"
done9="1" done8="0" done7="1"
done6="0" done4="20">
should be replaced with:
<DIV class=menu>
In this experiment I can do it with this regular expression:
[ ^]done[0-9]+="[0-9]+"
Using Notepad++ 5.6.8 Unicode, with a file encoded in ANSI, I'm putting this regex in the "Find what" field. It only replaces the 5 occurrences starting with a space, it will miss the 2 occurrences starting at the beginning of a line.
How can I construct a regex to remove all the attributes of an HTML element starting with a keyword?
^
worked for me