Ruby - Regular Expressions
What will be the output of this Ruby code?
text = "abc123xyz"
matches = text.scan(/\d+/)
puts matches.join(",")text = "abc123xyz"
matches = text.scan(/\d+/)
puts matches.join(",")15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions