Ruby - Regular Expressions
Find the mistake in this code:
text = "abc def ghi" matches = text.scan(/\w+) puts matches.inspect
text = "abc def ghi" matches = text.scan(/\w+) puts matches.inspect
/\w+ is missing the closing slash.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions