-1

xiangpinglee@hotmail.com:1230asdf

Saharnaya_N_@mail.ru:

duga@rambler.ru:7354205duga

iregina_1983@mail.ru:

remove

iregina_1983@mail.ru:

Saharnaya_N_@mail.ru:

how to remove lines without password by regex way?

2 Answers2

0

Do a regular expression find/replace like this:

  • Open Replace Dialog
  • Find What: ^.*:(\R|\z)
  • Replace With: `` the empty string
  • Check regular expression
  • Click Replace or Replace All

The Regular Expression matches

  • everything (.*)
  • from start of line (^)
  • to either line end or buffer end (\R|\z)
  • a match is a line that ends with :
  • such a matching line is completely (including the lineend) replaced with empty string
Lars Fischer
  • 9,135
  • 3
  • 26
  • 35
0

You could use the method described in this answer with this regex :

:$

Which means "a colon at the end of the line".

This will remove every line without password.

Community
  • 1
  • 1
Eric Duminil
  • 52,989
  • 9
  • 71
  • 124