MD5 file
-
friends I have this problem in MD5, how can I fix it with notepad++?
tonnyy:a0265d945369cf7ce4e25b1bff091999565781570992c8bd3
angel:dc6e426478b2d29a8e1ad70eb48660f4
perrys:b40a02e54f3c31d8ddc911b18722f773f5aad29dba902755fI need it that way
tonnyy:a0265d945369cf7ce4e25b1bff091999
angel:dc6e426478b2d29a8e1ad70eb48660f4
perrys:b40a02e54f3c31d8ddc911b18722f773 -
Hello, @chalo-net, and All,
Easy with regular expressions !
-
Open The Replace dialoag (
Ctrl + H
) -
SEARCH
(?-s)(^.+:[[:xdigit:]]{32}).+
-
REPLACE
\1
-
Tick the
Wrap around
option, if necessary -
Select the
Regular expression
search mode -
Click once on the
Replace All
button or several times on theReplace
button
Notes :
-
The first part
(?-s)
ensures that the regex char.
will match a single standard character, only -
Then the part
^.+:
searches for the longest zone ending with a:
character -
Now, the part
[[:xdigit:]]{32}
simply selects32
hexadecimal characters -
As the part
^.+:[[:xdigit:]]{32}
is embedded in parentheses , its present value is stored as group1
, which will be rewritten, during replacement -
The final part
.+
, searching for the remainder of each line, is deleted, during replacement, as not stored in a group
Best Regards,
guy038
-