Notepad++ How to copy the last x characters of every line to the end of the same line?

Solution 1:

  • Ctrl+H
  • Find what: \w{7}$
  • Replace with: $0$0
  • CHECK Wrap around
  • CHECK Regular expression
  • Replace all

Explanation:

\w{7}       # 7 alphanumeric characters
$           # end of line

Replacement:

$0$0        # twice the whole match

Screenshot (before):

enter image description here

Screenshot (after):

enter image description here