medium
Generate Regex for Dates
Create a regular expression for a specific date format.
📝 Contenu du Prompt
Write a regular expression that validates dates in the format YYYY-MM-DD (e.g., 2023-10-25). Ensure it accounts for leap years. Provide the pattern and a brief breakdown of each part.