1

Using Notepad++, how do I remove all lines with a 1,2 sequence? Example list below...

1 2 3 8 9

1 3 4 8 9

2 3 4 8 9

1 2 5 8 9

1 3 5 8 9

2 3 5 8 9

1 2 6 8 9

Jean
  • 31
  • 2
  • possible duplicate of [Removing lines in Notepad ++](http://stackoverflow.com/questions/17578152/removing-lines-in-notepad) – cdbitesky Jul 20 '13 at 06:24
  • 1
    You might want to use regex. Check [this](http://stackoverflow.com/questions/918158/how-to-delete-specific-lines-on-notepad). – rnbguy Jul 20 '13 at 06:28

1 Answers1

2

enable regexes and Ctrl F for this:

^1 2 (.*)$

replace with nothing, and click replace all.

source, tested on my n++, works fine.

edit see comment if you want to remove linebreaks

Community
  • 1
  • 1
Stephan
  • 16,509
  • 7
  • 35
  • 61