Ruby - Regular Expressions
Given a string with multiple dates like '2023-05-01 and 2024-06-15', write a Ruby regex with capture groups to extract year, month, and day separately for each date. Which regex correctly captures these parts?
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions