Build, test, and debug regular expressions
This regular expression is designed to extract the date component (YYYY-MM-DD) from an ISO 8601 formatted datetime string. It captures the year, month, and day by matching four digits for the year followed by two occurrences of a hyphen and two digits. This is useful for parsing log files, processing dates, or isolating the date portion before performing further data manipulation.