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()
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()
2 matches
Mail list logo