Search and Replace a Phrase

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
TestMeister
Posts: 255
Joined: 04 Feb 2008 20:17
Location: Win 11 Pro v25H2- 125%

Search and Replace a Phrase

Post by TestMeister »

Apologies if I have missed something obvious in the Help instructions but I cannot find the syntax to do the following.

I want remove a specific word string without affecting the rest of the file name that may contain some of the same characters.
Original-
Beatles, The - 1962-1966 CD 2 - 13 - Yellow Submarine.wav
Beatles, The - 1962-1966 CD 2 - 12 - Eleanor Rigby.wav
Beatles, The - 1962-1966 CD 2 - 11 - Paperback Writer.wav

Expected result-
Beatles- Yellow Submarine.wav
Beatles- Eleanor Rigby.wav
Beatles- Paperback Writer.wav

highend
Posts: 15003
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Search and Replace a Phrase

Post by highend »

RegExp rename them

Code: Select all

(Beatles)(, The - 1962-1966 CD 2 - \d+ )(.*) > $1$3
One of my scripts helped you out? Please donate via Paypal

TestMeister
Posts: 255
Joined: 04 Feb 2008 20:17
Location: Win 11 Pro v25H2- 125%

Re: Search and Replace a Phrase

Post by TestMeister »

Thanks!

Post Reply