Changing folder dates

Advanced Renamer forum
#1 : 03/07-19 01:23
Alex
Alex
Posts: 2
Hey guys,

Hopefully an easy one.

I have 400 folders or so with the naming convention: name year

E.g. Bob's Folder 2018, Fred's Folder 1958, Carol's Folder 1930

I need to change it so it reads: Bob's Folder (2018), Fred's Folder (1958), Carol's Folder (1930)

Any thoughts? Not quite sure which regular expressions to use in this case. Note, a couple of folders are named something like: 333 1999 and would need changing to 333 (1999) (always the year in 4 digits at the end however)

Thanks!


03/07-19 01:23 - edited 03/07-19 01:37
#2 : 03/07-19 03:08
Alex
Alex
Posts: 2


03/07-19 03:08
#3 : 03/07-19 09:10
David Lee
David Lee
Posts: 1125
Reply to #2:

The regex (\d{4}$) will match a string of 4 digits only if it occurs at the end of the filename.

So it would also work with 3333 1999 -> 3333 (1999)


03/07-19 09:10