by GMA » Tue Jan 20, 2009 9:12 pm
Hi, jets:
Try using the following in the "RegEx(1)" field:
MATCH: (.*)([0-9]{4})(.*)
REPLACE: \1(\2)\3
It'll work with almost every filename, except where there's a 4 digit number also in the movie title (e.g. "2001, A Space Odyssey"). In those special cases you might want to confirm that you're getting the desired result.
For example: 2001, A Space Odyssey_1968.avi will be renamed as 2001, A Space Odyssey_(1968).avi, and that's correct.
But if the file name is 1968_2001, A Space Odyssey.avi, after renaming it'll be 1968_(2001), A Space Odyssey.avi, so then you're gonna need to manually change it to (1968)_2001, A Space Odyssey.avi.
Anyway, you might not even have those special cases among your files, since they're not so common.
Best regards,
Gabriel.