I think it is called CapFirst. But obviously, Ben is a RegEx master!
"This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant, Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business, Registered in England, Number 678540. It contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender or call our switchboard on +44 (0) 20 89107910. The opinions expressed within this communication are not necessarily those expressed by Reed Exhibitions." Visit our website at http://www.reedexpo.com -----Original Message----- From: Ben Doom <[EMAIL PROTECTED]> To: RegEx <[email protected]> Sent: Fri Oct 21 19:14:37 2005 Subject: Re: Uppercasing first letters of certain words 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 > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:21:934 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
