-4

I have a list of textfile such as below example:

username1
username2
username3

I want a regex that can make it like following example:

username1:username1
username2:username2
username3:username3

etc..

I've tried many regex with failed attempts.

Dharman
  • 30,962
  • 25
  • 85
  • 135
mzaboss
  • 31
  • 1
  • 9

1 Answers1

1

Just click Ctrl + H to open the replace window, and follow the attached picture.

enter image description here

Ibrahim
  • 6,006
  • 3
  • 39
  • 50