by GMA » Mon Aug 11, 2008 2:41 am
Hi, dighito:
The usual way to do what you need is using RegEx (1) as follows:
Match: (.*) - (.*)
Replace: \2 - \1
But in this case, the double extension (".cdg.bc!" and ".mp3.bc!") is a little tricky, because the first one is considered as part of the file name. So, one solution I can think of (IF YOU'RE SURE THAT EVERY FILE HAS A DOUBLE EXTENSION) is using the following RegEx:
Match: (.*) - (.*).(...)
Replace: \2 - \1.\3
I supose there's a more proper way that I'm missing, but I think this'll help dighito for the time being.
By the way, Jim: is there a way to "lock" a double extension so it'll be treated as a single extension? (as oposed to the first one being considered as part of the file name, thus getting modified/deleted/missplaced by some operations). Maybe adding such a feature? Something like "Lock multiple extensions" (Sub-option: last 2 dots/last 3 dots/etc.)
Of course, inactive by default; because, I know, sometimes files have several dots in their filenames which doesn't necessarily mean that they determine multiple extensions. Just an option for cases like the one in this topic, where there's a common "dot pattern" in all files.
Best regards,
Gabriel.