Build, test, and debug regular expressions
This regular expression matches a valid date and time in the format `YYYY-MM-DD HH:MM:SS`. It strictly validates the calendar date, accounting for varying month lengths and leap years, as well as ensuring the time falls within a valid 24-hour range. It is perfect for validating standardized datetime inputs in logs, forms, or databases.