As far as I can tell, Notepad ++ regex support does not allow you to capture a newline character. You better use this regex:
^.*\.net.*$
Replace it with nothing (now it's an empty string), then change the search mode to advanced and replace \r\n\r\n
with \r\n
(or \n\n
by \n
if you use a Unix-style line ending). strike>
BoltClock noted that I am lagging behind in time, and this version 6 supports it. You can use this regex to find these lines and remove them:
^.*\.net.*(\r\n|$)
EDIT
I appreciate your answer, but you misunderstood what I said. I am trying to find lines that DO NOT CONTAIN .net / to remove them. It can be done?
Oops If you want to match strings that don't have .net
, use this expression:
^(?!.*?\.net/).*\r\n
Works in Notepad ++ 6.
source share