Skip to content

Instantly share code, notes, and snippets.

@mayurdange
Last active February 22, 2019 13:17
Show Gist options
  • Select an option

  • Save mayurdange/5bacd29ef1541af2aa0f60c8c2c4cda3 to your computer and use it in GitHub Desktop.

Select an option

Save mayurdange/5bacd29ef1541af2aa0f60c8c2c4cda3 to your computer and use it in GitHub Desktop.
Find What: (\b[a-z]+|\G(?!^))((?:[A-Z]|\d+)[a-z]*)
Replace With: \U\1_\2
Match Case: ON.
https://regex101.com/r/uj9mGm/1
https://stackoverflow.com/a/43768828
(\G(?!^)|\b[a-zA-Z][a—z]*)([A-Z][a-z]*|\d+)
\U\1_\2
[/_]([a-z])
\U\1
[`]([a-z_]+)[`]
\L\1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment