Ruby - Regular Expressions
What is the output of this Ruby code?
text = 'Order number: 12345' match = text.match(/number: (\d+)/) puts match[1]
text = 'Order number: 12345' match = text.match(/number: (\d+)/) puts match[1]
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions