Skip to content

Instantly share code, notes, and snippets.

@cblunt
Last active August 29, 2015 13:55
Show Gist options
  • Save cblunt/8729079 to your computer and use it in GitHub Desktop.
Save cblunt/8729079 to your computer and use it in GitHub Desktop.
Replace ruby rocket-syntax hash keys with JSON style
# Simple regex to replace ruby rocket-syntax hash keys with JSON style.
# e.g. Replace :some_key => "value" with some_key: "value"
#
# (Tested in sublime)
/:([a-zA-Z0-9_-]*)(( *)=>\ *)/$1: /
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment