Last word of title capitalized (e.g of->Of)


I've made a simple action script that capitalizes titles the way I want them, by making some words lower case (like "of", "the", "in" and so on). I have a problem though, and the best way is to give an example:

Original title: Stuck In A Moment You Can't Get Out Of
What I want: Stuck in a Moment You Can't Get Out Of
What my script does: Stuck in a Moment You Can't Get Out of

Is there a way - probably by RegEx (?) - that will always capitalize the last word of the title? I'm able to do this to the first word in the title, but haven't figured how to do the same for the last one.

Finally, thanks for a magnificent piece of software!

Can you try something like this:

Action type: Replace with regular expression
Field: TITLE
Regular expression: (.*) (.+$)
Replace matches with: $1 $caps($2)

[ ] case-sensitive comparison

That works like a charm! Thanks for the fast reply :slight_smile: Guess I should study up on regular expressions, hadn't even heard about it before I was introduced to Mp3tag.

Yeah, they're quite powerful but unfortunately not the most intuitive part of Mp3tag :slight_smile:

Glad that it works!