在记事本++上切换单词位置 [英] Switch word positions on Notepad++

查看:103
本文介绍了在记事本++上切换单词位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我需要帮助,我想要在记事本++上切换单词的位置,就像这样.

Hello guys I need a bit help I neeed to switch words position on notepad++ they are like this.

Grands | Albz

Grands|Albz

因此,我想不移动而将带有albz的grand切换到另一侧|像这样

So I wanna to switch grand with albz to to other side without moving | to make it like this

Albz | Grands

Albz|Grands

文本对您有帮助吗?

推荐答案

执行
1)cntrl+f
2)转到replace选项卡
3)在find what:
中键入Grands|Albz 4)在Replace with:
中键入Albz|Grands 5)单击Replace All框(窗格右侧顶部的第3个)以替换所有出现的内容.

do
1)cntrl+f
2) go to the replace tab
3) type Grands|Albz in find what:
4) type Albz|Grands in Replace with:
5) Click on Replace All box(3rd from the top in right side in the pane) to replace all the occurrence.

如果要使其概括,请尝试以下解决方案: 做
1)cntrl+f
2)转到replace选项卡
3)选中左下角的Regular expression复选框.
4)在find what:
中键入([A-Za-z]\w+)\|([A-Za-z]\w+) 5)在Replace with:
中键入\2\|\1 6)单击Replace All框(窗格右侧顶部的第3个)以替换所有出现的内容.

If you want to make it generalize try below solution: do
1)cntrl+f
2) go to the replace tab
3) check the check box that say Regular expression at the bottom left corner.
4) type ([A-Za-z]\w+)\|([A-Za-z]\w+) in find what:
5) type \2\|\1 in Replace with:
6) Click on Replace All box(3rd from the top in right side in the pane) to replace all the occurrence.

这篇关于在记事本++上切换单词位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆