I'm trying to move the date from the end of a filename to the beginning, and change the format at the same time. Currently the filename format is like so:
"BRU HAS SOME FANCY FEATURES 15 01 2012.doc"
and I'd like it to read:
"2012 01 15 BRU HAS SOME FANCY FEATURES.doc"
So, I've tried this regular expression:
^([A-Z *]) ([0-9][0-9]) ([0-9][0-9]) ([0-9][0-9][0-9][0-9])
\4 \3 \2 \1
But it doesn't seem to do anything. Do I need to specify groups for each word in the filename (could be a problem when filenames have a varying number of words)? Or is there a way to delineate a longer string including spaces? I've only done a little regex matching before, and moving/renaming is completely new to me.
