At least you haven't been struggling with CFCs and cryptic error messages for a year! ;-)
----- Original Message ----- From: "Ben Doom" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Saturday, June 21, 2003 1:48 AM Subject: RE: Initial caps regex > I would say gratifyingly simple. Very elegant, too. > > But only on MX, cries the boy trapped in 5. > > > -- Ben Doom > Programmer & General Lackey > Moonbow Software, Inc > > : -----Original Message----- > : From: Matthew Walker [mailto:[EMAIL PROTECTED] > : Sent: Thursday, June 19, 2003 9:41 PM > : To: CF-Talk > : Subject: Initial caps regex > : > : > : Hey I've just been playing with CFMX regular expressions and thought I'd > : share. You can write this to force initial caps: > : > : <cfset initialCapsText = rereplace(text, "(\b\w)", "\u\1", "all")> > : > : \b marks a transition to or from a word, \w marks an > : alphanumeric, \u means > : capitalize the next char, and \1 is a back reference. Alarmingly > : simple, eh? > : > : > : > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Host with the leader in ColdFusion hosting. Voted #1 ColdFusion host by CF Developers. Offering shared and dedicated hosting options. www.cfxhosting.com/default.cfm?redirect=10481 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

