Norman
Norman

Reputation: 6365

Notepad++ Insert text in between lines

In Note pad, I have data like this:

(0, 0, 0, UK, ,NULL, NULL),
(0, 0, 0, SE, ,NULL, NULL),
(0, 0, 0, DE, ,NULL, NULL), //And 100 more lines

I need to insert the country name after the country code, which are stored on every line like this:

United Kingdom,
Sweden,
Germany,

So the end result is:

(0, 0, 0, UK, United Kingdom, NULL, NULL),
(0, 0, 0, SE, Sweden, NULL, NULL),
(0, 0, 0, DE, Germany, NULL, NULL), //And 100 more lines

I tried Alt+Shift+Down Arrow and then paste, but that would not work. Any method of doing this?

Upvotes: 1

Views: 782

Answers (1)

AdamL
AdamL

Reputation: 13151

Copy all country names with Left Alt pressed (column selection mode), and simply paste it after the "UK,".

Upvotes: 3

Related Questions