Build, test, and debug regular expressions
This regex matches date and time strings, typically formatted as YYYY-MM-DD or similar variations followed by HH:MM or HH:MM:SS. It allows for 2 to 4 digit years, 1 to 2 digit months and days, and supports hyphens, slashes, or colons as separators. This pattern is useful for parsing various localized date-time formats or log entries.