How to capitalize the first letter of every word in a sentence? (Similar to CSS text-transform capitalize)
Thank you. Uli
Use a regular expression replace:
var str:String = "the quick brown fox jumped over the lazy dog.";
str = str.replace(/(^[a-z]|\s[a-z])/g, function():String{ return arguments[1].toUpperCase(); });