It\'s a simple question, I searched in google but didn\'t find anything helpful.
I know about the column mode in Notepad++ (Alt + Left mouse click or by using
^\d+\h+(\d+).+$
$1
. matches newline
Explanation:
^ : begining of line
\d+ : 1 or more digits
\h+ : 1 or more horizontal spaces
(\d+) : group 1, 1 or more digits
.+ : 1 or more any character
$ : end of line
Replacement:
$1 : content of group 1 (ie the second column)
Result for given example:
2942843527
2942843813
2942844067
2942844321
2942844575
2942844837
2942845100
2942845345
2942845599
2942845845
Place your text cursor to top left corner of the column.
In scroll bar on right side, drag the thumb to scroll to other end of the file.
Alt + Shift + Left-click into the bottom right corner of your intended selection.
Optionally, use Alt + Shift + arrows to adjust your selection as needed.
Another way, you can try the plugin ConyEdit.
To copy to other file, use the command line cc.gc 2w
.
To delete, use the command line cc.dc 2w
.
Explanation:
gc: get column
dc: delete column
2w: second Word
If it is more complex, you can try cc.gc <nth>/<regex>/