Test, validate and match regular expressions
This regex matches dates in YYYY-MM-DD format, capturing the year, month, and day as separate groups. It's commonly used for filtering or parsing ISO date strings from databases in JavaScript applications. The pattern ensures each date component contains the correct number of digits while allowing for proper extraction of date parts for further processing.