Regexp that change ruby 1.8 hash syntax to 1.9 hash syntax