Moving a word in parentheses to the end of a file name

A swapping-ground for Regular Expression syntax

Moving a word in parentheses to the end of a file name

Postby Noctis » Sat Apr 01, 2023 7:37 pm

Hi, I've been scouring the forums for an answer to this but I can't find one, or figure it out myself.
I'm trying to move a word in parentheses from the middle of a file to the end.
For example:
Amy Grant (Wbgv) - Saved By Love - CBD-100798.zip
To change to:
Amy Grant - Saved By Love - CBD-100798 (Wbgv).zip
Any help would be greatly appreciated.
Noctis
 
Posts: 1
Joined: Sat Apr 01, 2023 7:21 pm

Re: Moving a word in parentheses to the end of a file name

Postby Admin » Mon Apr 03, 2023 2:02 am

Try:

RegEx (1)
Simple: Enabled
Match: %1 (%2) %3
Replace: %1 %3 - (%2)
Admin
Site Admin
 
Posts: 2579
Joined: Tue Mar 08, 2005 8:39 pm


Return to Regular Expressions