Ruby - Regular Expressions
What is the issue with this Ruby code snippet?
text = "abc123" if text.match(/\d+/) puts "Digits found" else puts "No digits" end
text = "abc123" if text.match(/\d+/) puts "Digits found" else puts "No digits" end
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions