Test, validate and match regular expressions
This regex matches an absolute date and time format commonly used in APIs and logs, such as 2023-12-31T23:59+02:00[Europe/Athens] or without an offset. It captures the date, time, optional timezone offset, and a bracketed timezone identifier (e.g., [UTC], [America/New_York]). The pattern is useful for validating or extracting timestamp components in JavaScript, especially for logs, event data, or configuration files.