regexnotepad++editing

Duplicate a line of text in notepad++?


before

man
woman
friend
love

after

man man
woman woman
friend friend
love love

Does anyone know about doing this using a text editor or cmd?


Solution

  • Well, you could use something like this:

    Find:

    ^.*$
    

    And replace by

    $0 $0
    

    Make sure you have the following settings:

    enter image description here