Convert List Of Words To Mixed Case

Say I have a list of words: "die|you|ugly|bastard|crap|blah|test|etc"

And I want every instance of each word to be Capitol first letter and Lowercase the remaining letters.

So "die you ugly bastard, crap, blah, test, etc..."

Would become "Die You Ugly Bastard, Crap, Blah, Test, Etc..."

I would use the Case Conversion action, but I don't need every word to be like this, only the ones in the list. I'm assuming it's some kind of Regex, but I only know of $upper and $lower -- maybe there should be an option for $mixed as well...

Anybody?

You could convert everything with lowercase letters and then replace only the words in your list.

$regexp(%TEST%,'\b(die|you|ugly|bastard|crap|blah|test|etc)\b','\u$1') "die you ugly bastard, crap, blah, test, etc." -> "Die You Ugly Bastard, Crap, Blah, Test, Etc."

DD.20140311.1802.CET