Search code examples
regexnotepad++

How to make User:User combo using Regular Expression in Notepad++


Hello I have the txt file list:

asjd
gsgs
asda

I want to change the list so it is formatted as such:

asjd:asjd
gsgs:gsgs
asda:asda

So it outputs it into instead of a User:Password combo the password is just the User. Thanks in advance


Solution

  • You may try the following find and replace, in regex mode:

    Find:    ^.*$
    Replace: $0:$0
    

    Demo