Skip to content

Instantly share code, notes, and snippets.

@terrafied
Last active December 17, 2015 14:09
Show Gist options
  • Save terrafied/5622175 to your computer and use it in GitHub Desktop.
Save terrafied/5622175 to your computer and use it in GitHub Desktop.
Regex for replacing ruby hashes keyed with symbols
Search regex: :([\w\d]+)(?:\s*)=>(?:\s*)
Replace: $1:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment