Build, test, and debug regular expressions
This PCRE regex matches log entries that start with a bracketed timestamp in either millisecond or second precision with timezone offset, followed by optional bracketed log level tags. It captures the timestamp and log level (if present) for structured log parsing. Useful for filtering or extracting metadata from application logs, such as those from customer document template services.