Community
    • Login

    how to change email and pass to email:pass

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    5 Posts 3 Posters 1.7k 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.
    • Bahaa0013B
      Bahaa0013
      last edited by

      Hi everyone…
      I’m working in a little project and I need some help,
      I have a file contains +5000 email and password I want to change them to (email:pass) using notepad++

      example:
      [1]-----------------
      email: example@example.com
      password: 123123
      [2]-----------------
      email: example2@example.com
      password: 123321
      [3]-----------------
      …

      I want to convert all of the them to:
      example@domain.com:123123
      example2@domain.com:123321

      I was hopeless about this… but I’m now surprised from the experts I saw in this community <3… I hope someone of them help.

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP PeterJones referenced this topic on
      • PeterJonesP
        PeterJones @Bahaa0013
        last edited by

        @Bahaa-Eddin-ツ :

        FIND = (?-s)email: (.*)\r\npassword: (.*)\r\n
        REPLACE = $1:$2\r\n

        Unsolicited Advice: If you are storing or dealing with passwords in plain text, you are going to get hacked: it’s a matter of when, not if. Stop it, get a real login password system, and apologize to your users for storing their passwords insecurely, and encourage them to change their passwords (both in your site and wherever else they may have foolishly used the same password that they used at your site).

        ----

        Useful References

        • Please Read Before Posting
        • Template for Search/Replace Questions
        • Formatting Forum Posts
        • Notepad++ Online User Manual: Searching/Regex
        • FAQ: Where to find other regular expressions (regex) documentation
        Bahaa0013B 1 Reply Last reply Reply Quote 3
        • Bahaa0013B
          Bahaa0013 @PeterJones
          last edited by

          @PeterJones
          thank you very much sir worked perfectly perfect!!
          I really hope to learn notepad like you guys…
          do you have any way to learn regex like?.

          Don’t worry I’m using x2 antivirus applications on my pc and I’m sure there is no keyloggers on my pc…
          but I will take your note seriously.

          PeterJonesP 1 Reply Last reply Reply Quote 0
          • PeterJonesP
            PeterJones @Bahaa0013
            last edited by

            @Bahaa-Eddin-ツ said in how to change email and pass to email:pass:

            do you have any way to learn regex like?.

            The pages in the Useful References I shared already includes links to regex documentation and sites.

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

              Hello, @bahaa-eddin-ツ, @peterjones and All,

              The solution already provided by @peterjones is the right one and my solution would be identical or very similar !

              Best Regards,

              guy038

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