[flexcoders] Re: Perplexing regex/replace() issue

2009-03-16 Thread jimmy5804
Yeah, thanks. mea culpa. didn't read the docs on the function version closely enough. --- In flexcoders@yahoogroups.com, Beau Scott wrote: > > Kinda cheated for one line but it works: > > var s:String = t.toLowerCase().replace(/-([a-z])/g, function():String { > return arguments[1].toUpperCase()

[flexcoders] Re: Perplexing regex/replace() issue

2009-03-16 Thread jimmy5804
Yeah, thanks. mea culpa. didn't read the docs on the function version closely enough. --- In flexcoders@yahoogroups.com, Beau Scott wrote: > > Kinda cheated for one line but it works: > > var s:String = t.toLowerCase().replace(/-([a-z])/g, function():String { > return arguments[1].toUpperCase()