Ruby - Regular Expressions
Why does the following code delete all occurrences of digits instead of leaving the string unchanged?
str = "a1b2c3"
str.gsub(/\d/) { |match| match if str.count("0-9") == 1 }