Test, validate and match regular expressions
This regex matches datetime strings in YYYY-MM-DD HH:MM:SS format with flexible digit handling for months (1-12), days (1-31), hours (0-23), minutes and seconds (0-59). It accepts both single and double digit representations with optional leading zeros. Useful for validating timestamp data in logs, databases, or parsing date information from text files.