Last Updated: February 25, 2016
·
1.089K
· plukevdh

Ruby 1.8 -> 1.9 hash syntax regex

Used within vim for quick syntax upgrade. Could be used with grep or somesuch to grep an entire project.

%s/:\(\w*\) =>/\1:/gc