• Login
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.
  • C
    chalo net
    last edited by chalo net Dec 27, 2019, 1:42 PM Dec 27, 2019, 1:42 PM

    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
    • G
      guy038
      last edited by guy038 Dec 28, 2019, 8:18 AM Dec 27, 2019, 2:45 PM

      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
      2 out of 2
      • First post
        2/2
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors