Notepad++ 使用记事本更改文本行的格式++;

Notepad++ 使用记事本更改文本行的格式++;,notepad++,Notepad++,我有这样一个文本文件: title1*desc1*filepath1* title2*desc2*filepath2* title3*desc3*filepath3* filepath1%title1%desc1% filepath2%title2%desc2% filepath3%title3%desc3% 我有多行是这种格式的,我想这样替换它: title1*desc1*filepath1* title2*desc2*filepath2* title3*desc3*filepath3*

我有这样一个文本文件:

title1*desc1*filepath1*
title2*desc2*filepath2*
title3*desc3*filepath3*
filepath1%title1%desc1%
filepath2%title2%desc2%
filepath3%title3%desc3%
我有多行是这种格式的,我想这样替换它:

title1*desc1*filepath1*
title2*desc2*filepath2*
title3*desc3*filepath3*
filepath1%title1%desc1%
filepath2%title2%desc2%
filepath3%title3%desc3%
我什么都试过了,但看起来好像没法用


谢谢

您将使用正则表达式查找/替换:

  • 查找
    ^(.*)\*(.*)\*(.*)\*
  • 替换为
    \3%\1%\2
  • 检查正则表达式
  • 单击“全部替换”
说明:

  • 它将由start(
    ^
    )或literal star(
    \*
    )分隔的任意字符(
    *
    )捕获到捕获组
    \1、\2、\3
  • 捕获的字符串在替换中按不同的顺序使用

我什么都试过了
你能展示一下吗?