0

How to clear a complete line in NP++ using the search and reaplace menu? E.g. I search for the patters

%4

and then want not only to clear this pattern, but the complete line, where it stands in, where a "line" should be, what notepad shows with a line-number on the left.

Is that possible?

Mustafa
  • 133
  • 3
  • 9
  • Whats `^.*%4.*$` doing for you when you replace it with an empty string? – Robin Mar 26 '14 at 09:52
  • possible duplicate of [Regex: Remove lines containing](http://stackoverflow.com/questions/5876296/regex-remove-lines-containing) – stema Mar 26 '14 at 10:03

1 Answers1

1

You can use

^.*%4.*$\n

and replace that pattern with an empty string (assuming that your linebreaks are \n... If not you can replace it with ^.*%4.*$(\n\r|\r\n|[\r\n]))

Robin
  • 9,415
  • 3
  • 34
  • 45