Ruby - Regular Expressions
What will be the output of this Ruby code?
result = "test123" =~ /\D+/ puts result
result = "test123" =~ /\D+/ puts result
/\D+/ matches one or more non-digit characters.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions