Test, validate and match regular expressions
This regex matches dates and times in the dd-mm-YYYY HH:mm:ss format, specifically enforcing valid calendar dates with a year range from 1000 to 2999. It accounts for leap years, validating February 29th correctly based on Gregorian calendar rules, while also ensuring the correct number of days for each month (like restricting the 31st to specific months). It's perfect for validating precise historical timestamps, logging events, or validating datetime inputs in applications where European date formats are used.