• Login
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.
  • B
    Bahaa0013
    last edited by Feb 8, 2023, 3:55 PM

    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.

    P 1 Reply Last reply Feb 8, 2023, 4:57 PM Reply Quote 0
    • P PeterJones referenced this topic on Feb 8, 2023, 4:45 PM
    • P
      PeterJones @Bahaa0013
      last edited by Feb 8, 2023, 4:57 PM

      @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
      B 1 Reply Last reply Feb 8, 2023, 5:15 PM Reply Quote 3
      • B
        Bahaa0013 @PeterJones
        last edited by Feb 8, 2023, 5:15 PM

        @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.

        P 1 Reply Last reply Feb 8, 2023, 5:21 PM Reply Quote 0
        • P
          PeterJones @Bahaa0013
          last edited by Feb 8, 2023, 5:21 PM

          @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
          • G
            guy038
            last edited by Feb 8, 2023, 6:02 PM

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