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
Quick AnswerThe correct answer is True because it directly addresses the core logic of Java Programming.
The regex \d{4}-\d{2}-\d{2} matches dates in yyyy-mm-dd format.