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?
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?
Do a regular expression find/replace like this:
^.*:(\R|\z)
The Regular Expression matches
.*
)^
)\R|\z
):
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.