The regex is
^(?!07).*$
using the g
(global) and m
(multiline) flags. Search on that and replace with nothing.
The
^
asserts "beginning of line" (because we used them
modifier).The
(?!07)
means "not starting with07
". It's called a "negative look-ahead".The
.*
means "zero or more of anything".The
$
means "end of line" (because we used them
modifier).The
g
modifier means "globally" (all occurrences).
I haven't used Notepad++, but the docs say it uses PCRE, so the above should work. If it expects you to write the expression and flags all together, that would most likely be:
/^(?!07).*$/gm