Massimo Cavo
Massimo Cavo

Reputation: 33

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

I'm looking for help with Notepad++ regex. 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. The string may vary, but I know how to find it.

How can I do this in Notepad++?

Upvotes: 3

Views: 1752

Answers (1)

Tim Pietzcker
Tim Pietzcker

Reputation: 336238

Assuming that , DVD/3 is the regex that finds your string, search for

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

and replace it with

\1\3\2

Upvotes: 5

Related Questions