What is the regular expression to match any date in the format "yyyy-mm-dd" in a string?
Answer options
A
True
B
False
Correct answer: True
Explanation
The regex \d{4}-\d{2}-\d{2} matches dates in yyyy-mm-dd format.
Correct answer: True
The regex \d{4}-\d{2}-\d{2} matches dates in yyyy-mm-dd format.
PrimerDumps has 1400+ primer questions, 2026 mocks and coding hands-on — all free.