You could do every other word (the first word in every pair) but if you're not careful, you'll end up capitalizing "and".
It might be more accurate just to build a replace list like "one, two, three....eighty, ninety" and replace with the capitalized versions. --Ben Tony Hicks wrote: > I have a sentences like > > fifty-six thousand two hundred thirty-one dollars and 17/100 > > And I need to uppercase the first letter of each word or word pair, without > uppercasing the words like thousand, hundred, million > > So the above line would become > > Fifty-six thousand Two hundred Thirty-one dollars and 17/100 > > And I can't figure out how to go about it... Basically all numbers are > capitalized, except when immediately preceded by a hyphen. > > Any thoughts? > > Tony > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:21:933 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/21 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:21 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.21 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
