Match a date in YYYY-MM-DD format. You do not need to validate that the date is real — just the shape.
A intermediate exercise. Your pattern is run against every test case — the strings it must match and the strings it must not — and each one reports what it got against what was expected, with 3 hints if you want them.
A guided tutorial, a live playground, graded exercises checked against test cases, a printable cheatsheet and a glossary. The tool needs JavaScript, because the regular expressions run in your browser.