Notepad++ - Select all lines from columns

Solution 1:

Try this:

  1. Press CTRL+Home to move the typing cursor to the top of the document.
  2. Now, use the scroll bar to rapidly scroll to the bottom of the document without changing the position of the typing cursor. You can drag the slider portion of the scroll bar to rapidly reach the bottom of the document. It is really fast.
  3. Move your mouse pointer after the third number of the last line, hold down Alt+Shift and click.

Bingo!

Solution 2:

This can be done with the following regular expression, assuming your numbers are numbers only (ie. no commas, decimal points):

1111 2222 3333 4444 5555 6666
1111 2222 3333 4444 5555 6666
1111 2222 3333 4444 5555 6666
1111 2222 3333 4444 5555 6666
1111 2222 3333 4444 5555 6666
1111 2222 3333 4444 5555 6666
1111 2222 3333 4444 5555 6666
1111 2222 3333 4444 5555 6666

CTRL-H to go to Find and Replace

Find what: .*\s(\d+\s\d+\s\d+)$
Replace with: \1
Search Mode: Regular expression

An explanation of the find regex:

.*  = match anything, repeating
\s  = match single whitespace
(   = start capture group
\d+ = match one or more numerals
\s  = match single whitespace
\d+ = match one or more numerals
\s  = match single whitespace
\d+ = match one or more numerals
)   = end capture group
$   = match end of line

And the replace box:

\1 = capture group 1 from the prior regex match (everything matched between the ( and the ))

This took a few seconds to replace and leaves you with the last three columns of numbers, ie.

4444 5555 6666
4444 5555 6666
4444 5555 6666
4444 5555 6666
4444 5555 6666
4444 5555 6666
4444 5555 6666
4444 5555 6666
4444 5555 6666
4444 5555 6666
4444 5555 6666

Screenshot of NPP replace box:

notepad++ find and replace regex