Test, validate and match regular expressions
This regex matches datetime strings in the format YYYY-MM-DD HH:MM:SS, capturing the year, month, day, hour, minute, and second in separate groups. It is useful for parsing standardized timestamps, validating date-time input, or extracting components for reformatting, such as in WordPress plugin date conversion or database migrations.