MD5 file

  • friends I have this problem in MD5, how can I fix it with notepad++?


    I need it that way


  • 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 the Replace 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 selects 32 hexadecimal characters

    • As the part ^.+:[[:xdigit:]]{32} is embedded in parentheses , its present value is stored as group 1, 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,


Log in to reply