Skip to content

Instantly share code, notes, and snippets.

@jwliechty
Last active August 29, 2015 14:21
Show Gist options
  • Save jwliechty/eff0ff499be912ef1ba4 to your computer and use it in GitHub Desktop.
Save jwliechty/eff0ff499be912ef1ba4 to your computer and use it in GitHub Desktop.
Common Regexes

Format of the following will be

'SEARCH'
'REPLACE'

Where SEARCH is the regex search and REPLACE is the replacement text. The quotes (') are for showing if there is any proceeding or trailing whitespace.

Hashrocket Hash to JSON Hash

':([^\s=\)]+)\s+=>\s+'
'$1: '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment