Created
March 22, 2016 23:21
-
-
Save kekscom/d9eb5effe656d9d3ebf9 to your computer and use it in GitHub Desktop.
CamelCase-ize
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'hallo_ballo:bla'.replace(/([^a-z0-9][a-z0-9])/ig, function($0, $1) { | |
return $1[1].toUpperCase(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment