Capitalizing First Letters
Submitted by Wednesday, 27 October, 2004 - 17:05
on
How can one write a macro to capitalize the first letter of each word? My current approach would be...
search for words with the regular expression...
([a-zA-Z0-9])([a-zA-Z0-9])+
but can a variable eg, firstLetter, be assigned to $1 so that I can set...
firstLetter.toUpperCase();
search for words with the regular expression...
([a-zA-Z0-9])([a-zA-Z0-9])+
but can a variable eg, firstLetter, be assigned to $1 so that I can set...
firstLetter.toUpperCase();