For old ruby hash syntax with symbols %s/:\([a-z_]\+\) =>/\1:/gc For old syntax with strings %s/"\([a-z]\+\)" =>/\1:/gc