简体   繁体   English

Notepad ++查找字符串并将其附加到行尾

[英]Notepad++ find string and append it to the end of the line

I'm looking for help with Notepad++ regex. 我正在寻找有关Notepad ++正则表达式的帮助。 I have a file with lines similar to this: 我有一个类似于以下内容的文件:

(Donner, 1987) XviD, DVD/3, AC3 ITA - MP3 ENG, Subs, AVI

I want to find the string DVD/3 and move it to the end of its line. 我想找到字符串DVD/3并将其移至其行尾。 The string may vary, but I know how to find it. 该字符串可能会有所不同,但是我知道如何找到它。

How can I do this in Notepad++? 如何在Notepad ++中做到这一点?

Assuming that , DVD/3 is the regex that finds your string, search for 假设, DVD/3是找到您的字符串的正则表达式,请搜索

(.*)(, DVD/3)(.*)

and replace it with 并替换为

\1\3\2

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM