Ruby - Regular Expressions
Which of the following is the correct syntax to replace all digits in a string with "#" using
gsub and regex in Ruby?gsub and regex in Ruby?/pattern/./\d/ matches any digit character. Using it with gsub replaces all digits.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions