在Notepad ++中切换列

use*_*660 2 regex notepad++ multiple-columns

如何在Notepad ++中通过regexp切换列?例如,我有这个数据集

user.Email | recipient.CreationDate | recipient.MessagePK | user.CustomAttribute.Correspondence_ID

但我希望它是:

user.Email | recipient.MessagePK | recipient.CreationDate | user.CustomAttribute.Correspondence_ID

移动列下方的数据行也是如此.

bar*_*nos 8

将1,2,3,4列的顺序更改为2,4,1,3:

  1. 单击Ctrl/H.

  2. 选择正则表达式(弹出窗口的左下角).

  3. 找什么: (.*)\|(.*)\|(.*)\|(.*)

  4. 用...来代替: \2|\4|\1|\3

  • 在替换部件中没有必要逃避管道`|`. (2认同)