Created
November 25, 2010 00:30
-
-
Save adhusson/714697 to your computer and use it in GitHub Desktop.
Convert ruby hashes from 1.8 to 1.9 style. Using perl regexp (I invoke it from vim)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
s/:([^ ]*?)( +)=>( +)(.*?)($|,| )/$1:$2$4$5/g |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment