Skip to content

Instantly share code, notes, and snippets.

@fuzzylogiq
Created August 10, 2015 11:31
Show Gist options
  • Save fuzzylogiq/2459d0a3fadc7ca3b36b to your computer and use it in GitHub Desktop.
Save fuzzylogiq/2459d0a3fadc7ca3b36b to your computer and use it in GitHub Desktop.
Camel case to Underscores
s/([a-z](?=[A-Z])|[A-Z](?=[0-9]))/$1_/g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment