Finding Line Beginning using Regular expression in Notepad++
- by Michel Merlin
Finding Line Beginning using Regular expression in Notepad++
(Sorry if this is a newbie question)
I want to strip a 4000-line HTML file from all the jQuery "done" stuff, e.g.:
<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 http://www.zytrax.com/tech/web/regex.htm#experiment I can do it with RE:
[ ^]done[0-9]+="[0-9]+"
but in Notepad++ 5.6.8 UNICODE, in a .HTM file encoded in ANSI, Search Find, Search mode = Regular expression, putting this RE in the "Find what" field won't work (it will only find the 5 occurrences starting with a space, it will miss the 2 occurrences starting at the beginning of a line; IOW, the caret for line beginning, or the alternating it with a space, fails). How do I? TIA,
Versailles, Wed 21 Apr 2010 10:42:20 +0200