by Stefan » Fri Dec 18, 2009 1:17 am
Hi ThanhLoan,
there is no need for double posting your issue in different threads.
> However, this RegEx only works with a songname of 7 words exactly (Aname to Gname)
> and I don't know how to make it work for any number of words in the songname.
That is not possible.
Regular expression is an pattern matching system. You have to find an common pattern to match and this is not really flexible for different patterns.
And RegEx can handle 9 backreferences only anyway, so you are limited by this with your parts of file name.
You have to use an script to say something like
"PARTS = split file name at space"
"for each part in PARTS save first capital letter to var X..."
"NewFileName = OldFileNamePart + "_" + X + "." + OldFileNameExtension"
You can use VBscript or PERL or AutoHotkey or like this... or try Den4b ReNamer which can use PascalScript and has an active forum to aid you.
> Please advise how I can match any Unicode character.
I have no glue.