Test, validate and match regular expressions
This regular expression matches a date string in a YYYY-MM-DD format, allowing for separators such as hyphens, forward slashes, periods, or spaces. It captures the year, month, and day into separate groups, enforcing a basic structural validation where the month must start with a 0 or 1. It is commonly used for validating and parsing dates in textual data.