I want to edit a file using Notepad++, in such a way that I can copy(replicate) a line containing a specific word with some minor changes --

Example -- if the file has --

lASER_BALL
COMET_BALL
...

I want to change it to

LASER_BALL
LASER_BALL_END
COMET_BALL
COMET_BALL_END
...

Im talking about a file with a huge number of entries. Any idead on how this can be done using Notepad++ ?

link|improve this question
1  
voting to close - you could easily use Copy/Paste? – t0mm13b Sep 13 '10 at 0:54
feedback

migrated from stackoverflow.com Sep 13 '10 at 1:25

This question came from our site for professional and enthusiast programmers.

3 Answers

Ctrl + H for search and replace:

        alt text

Then, Select All Ctrl + A, then Ctrl + Shift + U.

link|improve this answer
feedback

This can be done with a regex find and replace

link|improve this answer
feedback
  1. Replace (Ctrl-H)

  2. Select "Regular expression" in "Search Mode"

  3. Find what: (.*)
    Replace with: \1\r\n\1_END

  4. Replace All (with In selection not ticked)

link|improve this answer
feedback

Your Answer

 
or
required, but never shown