haha, thnx.
"Bryan Stevenson" <[EMAIL PROTECTED]> on 01/22/2002 10:43 :59 AM Please respond to [EMAIL PROTECTED] To: CF-Talk <[EMAIL PROTECTED]> cc: Subject: Re: OT javascript This same topic just came through 2 days ago ;-) Go to cflig.org and grab the UDF that does just what you want Bryan Stevenson VP & Director of E-Commerce Development Electric Edge Systems Group Inc. p. 250.920.8830 e. [EMAIL PROTECTED] --------------------------------------------------------- Macromedia Associate Partner www.macromedia.com ----- Original Message ----- From: <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, January 22, 2002 8:36 AM Subject: OT javascript > how can i cap the 1st letter of every word in a sentence? > i tried using regexp inthe following matter to no avail, > > myRegex=/^[a-z]|\s[a-z]/g > > mySentence="this is a sentence"; > > mySentence=mySentence.replace(myRegex,/[A-Z]/); > > now some thing like this would've worked in perl because you can repl ace a > character from a correspondnig character in a set but apparently in > javascript you cannot do so. > > any ideas how this can be done short of breaking the sentence at the spaces > in to an array, capitalizing and then using .join(' ') to get every thing > back together? > > thanks-Savan > ______________________________________________________________________ Get Your Own Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation · $99/Month · Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists