I am trying to match the lines in following not input NOT containing "VelSign" (using Notepad++):
#MARKER VelSign 457.45 50 kmh
#MARKER IsBridge true
#MARKER TrafficSign 45
#MARKER TrafficLight 45 445 444 40
I am using the following regex:
^#MARKER (?!.*VelSign).*$
Doesn't seem to work. What am I doing wrong?
Make sure that you upgrade Notepad++ to version 6, as they changed quite a lot in the regex engine. Especially line breaks and lookarounds were a bit problematic in earlier versions.
Turn this:
^#MARKER (?!.\*VelSign).*$
Into this:
^#MARKER (?!.*VelSign).*$
You are escaping the * operator, which causes the match of a literal * instead of 0 or more ..
Also, make sure that you have checked the RegularExpression option (see the third radio button):

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With