Test, validate and match regular expressions
Parses structured log entries into four capture groups: a process/thread identifier (digits:4-digit number), a full timestamp in YYYY-MM-DD HH:MM:SS.mmm format, an alphabetic log level or component name (which may span lines), and a lazily-matched message body. The lookahead stops the message at the next log entry (a line starting with digits and a colon) or end of input, and the dotall flag allows multi-line messages. Useful for extracting fields from application or server logs for analysis.