....[year] rename

Post any Bulk Rename Utility support requirements here. Open to all registered users.

....[year] rename

Postby JAnwyl » Sun May 17, 2015 9:46 pm

I have a whole bunch of files that are formatted.

Lethal Weapon 1987
Lethal Weapon 2 1989
Lethal Weapon 3 1992
Lethal Weapon 4 1998

I want to rename to

Lethal Weapon[1987]
Lethal Weapon 2[1989]
Lethal Weapon 3[1992]
Lethal Weapon 4[1998]

Know how to add a ] as a suffix, What am I missing?
JAnwyl
 
Posts: 1
Joined: Sun May 17, 2015 9:20 pm

Match trailing year and put in [brackets]

Postby Stefan » Tue May 19, 2015 6:43 am

FROM:
Lethal Weapon 1987
Lethal Weapon 2 1989

TO:
Lethal Weapon[1987]
Lethal Weapon 2[1989]

RULE:
Match trailing four-digits with leading space, drop the space and put digits into brackets

TRY:
RegEx(1)
Match: ^(.+) (\d\d\d\d)$
Repla: \1[\2]



 
Stefan
 
Posts: 736
Joined: Fri Mar 11, 2005 7:46 pm
Location: Germany, EU


Return to BRU Support