Test, validate and match regular expressions
This regular expression matches date-like patterns at the beginning of a line, capturing two digits, a separator (like a slash, dot, or whitespace), another two digits, a second separator, and finally either a two or four-digit year. It is commonly used to identify and extract standard date formats such as DD/MM/YYYY or MM-DD-YY from logs or user input.