Test, validate and match regular expressions
This regex matches dates in the DD-MM-YYYY format, where the day is 01-31 (but does not validate real calendar dates, so 31-02 is allowed), the month is 01-12, and the year is exactly four digits. It uses hyphens as separators and is commonly used for extracting or loosely validating date strings in text, logs, or user input.