Created
April 9, 2012 20:04
-
-
Save SkyM/2346236 to your computer and use it in GitHub Desktop.
Camel case to underscore and back
This file contains 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
To convert camelCase to underscores, in TextMate, replace ([a-z])([A-Z]) with $1_\l$2 | |
To convert underscores to camelCase, replace ([a-z]+)_([a-z]+) with $1\u$2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment