Thank you SO much! I'm pretty new to Regular expressions, and I had got it to the point where I could find the capitals, but couldn't figure the rest. I really appreciate it man.
On Jan 29, 2008 3:04 PM, Jhonny Everson <[EMAIL PROTECTED]> wrote: > Hi Nick, > > > I have a String that will contain camel-case characters that I would like > > to add an underscore before each capital letter. > > > > var string1:String = "SomeCamelCaseString"; > var string2:String = string1.replace(/(\w)([A-Z])/g,"$1_$2"); > > -- > Jhonny Everson > >

