Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Notepad++ Remove everything before the : string?

Tags:

notepad++

I have a file like so...

[email protected]:password

I would like to remove the hotmail address and just keep the password with no :

So the file will look like the following in a nice list..

passwords passwords

like image 668
Jamie James Murphy Avatar asked Dec 16 '22 15:12

Jamie James Murphy


1 Answers

Use the find and replace option (CTRL + H):

Use the Regular Expression mode and replace .*: with an empty string.

This will result in a list of passwords which are line seperated.

Then, if you want to remove the new-lines switch to Extended *\n, \r ...) mode and replace \n with a space. (You might need \r\n depending on how you saved your file)

like image 81
RonK Avatar answered Dec 28 '22 23:12

RonK