Test, validate and match regular expressions
Matches multi-line ERROR log entries in standard Log4j formatted logs. It captures the starting timestamp and ERROR level, then includes all following lines non-greedily until it encounters the next log entry beginning with a date. This is highly effective for extracting full exception stack traces and error contexts from application logs.