Community
    • Login

    MD5 file

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 314 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • chalo netC
      chalo net
      last edited by chalo net

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

      tonnyy:a0265d945369cf7ce4e25b1bff091999565781570992c8bd3
      angel:dc6e426478b2d29a8e1ad70eb48660f4
      perrys:b40a02e54f3c31d8ddc911b18722f773f5aad29dba902755f

      I need it that way

      tonnyy:a0265d945369cf7ce4e25b1bff091999
      angel:dc6e426478b2d29a8e1ad70eb48660f4
      perrys:b40a02e54f3c31d8ddc911b18722f773

      1 Reply Last reply Reply Quote 0
      • guy038G
        guy038
        last edited by guy038

        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,

        guy038

        1 Reply Last reply Reply Quote 2
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors