Multi rename tool change case in regex

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
zeruyo
Junior Member
Junior Member
Posts: 22
Joined: 2003-03-10, 15:56 UTC

Multi rename tool change case in regex

Post by *zeruyo »

Hi,
I would like to know if there is a way to change case in a substitution string in multi rename tool.
Example:
start is: The Artist - The Album
result should be: THE ARTIST - The Album

Something like this
regex: (.*)( - .*)
substitution: [uc]$1[/uc]$2

Thanks.
User avatar
MVV
Power Member
Power Member
Posts: 8713
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

It seems that you can't...
However you may try something like this to split name into parts and then change case of just first part using and [n] case modifiers (use first one before inserting first filename part and second one between name parts).
zeruyo
Junior Member
Junior Member
Posts: 22
Joined: 2003-03-10, 15:56 UTC

Post by *zeruyo »

Thanks for reply. I installed Expander but I didn't understand how it works. I'll explore it better tomorrow. Thanks again.
I'll add this to my wishlist for TC next versions
User avatar
MVV
Power Member
Power Member
Posts: 8713
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

You should set '-' as separator in LNG file of this plugin (original one BTW). Then you may use its content fields in MRT dialog - it will provide splitted parts of filename. You will need name template like [=expander.Part1][n]-[=expander.Part2].
sekular
Member
Member
Posts: 104
Joined: 2009-07-02, 19:39 UTC

Post by *sekular »

If it was an artist name in a folder that you wanted to change the case of. You could just do a search and replace for the artist name in different case.

But if it is random names then that will not work.
zeruyo
Junior Member
Junior Member
Posts: 22
Joined: 2003-03-10, 15:56 UTC

Post by *zeruyo »

sekular wrote:If it was an artist name in a folder that you wanted to change the case of. You could just do a search and replace for the artist name in different case.

But if it is random names then that will not work.
It is random names. Thanks
zeruyo
Junior Member
Junior Member
Posts: 22
Joined: 2003-03-10, 15:56 UTC

Post by *zeruyo »

MVV wrote:You should set '-' as separator in LNG file of this plugin (original one BTW). Then you may use its content fields in MRT dialog - it will provide splitted parts of filename. You will need name template like [=expander.Part1][n]-[=expander.Part2].


It works!!! Thanks a lot.
Sorry for the delayed response but I wasn't able to try until now
Post Reply