How to Delete Lines Not Containing ":" in notepad++
how to delete lines not contaning :
match1:follow
Star3:night
master
Hunt:Bock3
Roll
want to keep only lines with :
Solution 1:
- Open find replace dialog (CTRL+H)
- Check "Regular expression"
- Find what:
^[^:]*$
- Replace with:
(empty)
- press "replace all"
Solution 2:
- Control+F, go to "MARK" tab
- Find what : :
- check the box against "bookmark line"
- click "Mark all"
All lines containing : will be highlighted.
- Now, go to "Search" menu >> bookmark >> remove unmarked line.
Voila!
Reference: https://stackoverflow.com/a/8231096/8307806
Thanks to Colin