Ruby - Regular Expressions
What is the output of this Ruby code?
text = "abc123XYZ"
matches = text.scan(/[A-Z]+/)
puts matches.join(",")text = "abc123XYZ"
matches = text.scan(/[A-Z]+/)
puts matches.join(",")15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions