Community
    • Login

    MD5 file

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 501 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 Offline
      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 Online
        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

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors