Initialize Album Name


#1

Hi, I'm new to the forums but have been a long time mp3tag user for years.
I've been meaning to organize my mp3 songs by using tag->filename with this format %artist% - %album% - %track% - %title%.

But some album names make the file name become too long for my taste. I would like to shorten it by initializing album names.

For example: Cage The Elephant - Thank You Happy Birthday - 04 - Shake Me Down.mp3 to become
Cage The Elephant - TYHB - 04 - Shake Me Down.mp3

How do I do that?

Thank you. :book:


#2

Hi RockmanNeo, to change the album part of the format string to only consist of "word's first letter capital characters", you can try something like this ...

$regexp($caps(%ALBUM%),'\s|\l',)

... or this ...

$regexp($caps2(%ALBUM%),'\s|\l',)

DD.20111215.0935.CET

This will give also good results, returning only upcase letters and digits.

$regexp($caps(%ALBUM%),'[^[:digit:][:upper:]]',) $regexp($caps(%ALBUM%),'[\D\U]',) $regexp($caps2(%ALBUM%),'[^[:digit:][:upper:]]',) $regexp($caps2(%ALBUM%),'[\D\U]',) $regexp($caps2(%ALBUM%,'() '''),'[\D\U]',)

DD.20140228.1850.CET


#3

Thank you thank you that works!! :smiley: