Can I apply a transformation to a captured group and perform a replacement in ES5?
I would like to transform dashed names (e.g. 'foo-bar) to camelcase (e.g. 'fooBar').
function camelify(str) {
return (str.replace(/(\-([^-]{1}))/g, '$2'.toUpperCase()));
}