For instance, the Chumbawamba album "The Boy Bands Have Won, and All the Copyists and the Tribute Bands and the TV Talent Show Producers Have Won, If We Allow Our Culture to Be Shaped by Mimicry, Whether From Lack of Ideas or From Exaggerated Respect. You Should Never Try to Freeze Culture. What You Can Do Is Recycle That Culture. Take Your Older Brother's Hand-Me-Down Jacket and Re-Style It, Re-Fashion It to the Point Where It Becomes Your Own. But Don't Just Regurgitate Creative History, or Hold Art and Music and Literature as Fixed, Untouchable and Kept Under Glass. The People Who Try to 'Guard' Any Particular Form of Music Are, Like the Copyists and Manufactured Bands, Doing It the Worst Disservice, Because the Only Thing That You Can Do to Music That Will Damage It Is Not Change It, Not Make It Your Own. Because Then It Dies, Then It's Over, Then It's Done, and the Boy Bands Have Won"
Lmao
I would keep the full album name in my MB library, but the folder would be "The Boy Bands Have Won…" as opposed to just being abruptly cutoff after the 50 character (or whatever) limit - actually, I'm not even sure if the ellipse is a valid character for file naming, but I'd use it if possible
You'll need the Additional Tagging & Tools plugin to access some of the functions below.
This should get you started. You'll have to wrap the $Left(Album,#) in a regular expression that matches everything up to the last space of the input phrase.
$If($Pad($Len(<Album>),4)>0050,$Left(<Album>,50)"...",<Album>)
Just curious, (being a frequently frustrated regex amateur): what is it in this regex that defines the last space?
$If($Pad($Len(<Album>),4)>0050,$RxReplace($Left(<Album>,50),"\s(?=[^\s]*$)[\s\S]*?$","..."),<Album>)
For the purpose of answering @hiccup's question, here's a hacky expression that should work for you, @Mr. Trev. (You can change "50" to whatever number you wish and use either the three periods or the ellipse provided by him.)
Expression formulated here (https://regex101.com/r/YJuaSR/1), @hiccup
It's a little hard to understand, but divide it into three parts.
The space before the last space. This is where the engine knows to start matching. Once it hits a space, it'll check the below expression to see if it also matches.
?= is the lookahead operator, so (starting from the above space) the engine will search for every character not a space [^\s] to the end of the phrase *$. If it hits the end of the phrase, it's a match, but if it hits another space, it'll reset matching starting from this newly discovered space.
This expression is a generic "match all characters" until the end of the phrase.
That $If looks incomplete. And what's the purpose of padding the number?
How so? MusicBee doesn't handle place value, so padding ensures both numerical expressions are evaluated appropriately.
I think something like 133>50 would return F, because 5 is greater than 1, for example. 133>050 evaluates properly.