1

I have a list of thousands of lines of the following type:

NAME1
SURNAME1

NAME2
SURNAME2

NAME3
SURNAME3

which I would like to transform into a two-column table of the following type:

NAME1   SURNAME1
NAME2   SURNAME2
NAME3   SURNAME3

The intent is to do it through a "regular expression" in Notepad++, but I have no idea how to do it and after several searches I had to bother you.

1 Answer 1

2

Use:

Find : (.+?)\r\n(.+?)\r\n
replace : \1 \2 (add as many separating blanks as required)

Explanation:

  • (.+?) : group containing at least one character. The ? denotes lazy match (meaning match as little as possible)
  • \r\n : end-of-line (on Windows)
  • \1 : value of the first group.

Ensure that your settings match the ones in my dialog:

enter image description here

1
  • Perfect!!!!!!!!
    – Monster
    Aug 27, 2021 at 16:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .