Switch word positions on Notepad++

别来无恙 提交于 2019-12-25 16:54:51

问题


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

Grands|Albz

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

Albz|Grands

Whloe of the text any help please?


回答1:


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.

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.



来源:https://stackoverflow.com/questions/30783009/switch-word-positions-on-notepad

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!