Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove all lines without an @ character in Notepad++

I have a list like:

asd@asd
abcdefgh
abcde@fgh
ijklmnop

I want to remove all lines without the symbol @. The result should be:

 asd@asd
 abcde@fgh

Can this be done in Notepad++, and if so, how?

like image 886
Notepadguy Avatar asked Sep 05 '11 16:09

Notepadguy


1 Answers

Try looking for:

^[^@]*$

and replacing with an empty string.

like image 181
obaqueiro Avatar answered Nov 09 '22 15:11

obaqueiro