I am trying to change CSS properties like this.
-moz-border-radius
In the CSS CSS property, for example:
MozBorderRadius
I am using this RegExp.
var exp = new RegExp('-([az])', 'gi'); console.log('-moz-border-radius'.replace(exp, '$1'));
All I have to do is convert $ 1 to uppercase so that it can work in cammelcaseify (yes, I made that word ...) my JavaScript based CSS property. Is it possible?
Thank.
javascript regex replace
Olical Feb 11 '11 at 13:35 2011-02-11 13:35
source share