Test, validate and match regular expressions
This regex parses specific event log entries by extracting a reason code, a timestamp or ID, and an optional descriptive message. It expects a format containing a reason code in parentheses (e.g., RRR123 or PCR456), followed by a bracketed identifier formatted as an 8-digit number starting with 1 or 2, an '@' symbol, and a 6-digit number. Finally, it optionally captures a message enclosed in << >> or a plain text message that does not start with <<. It is highly useful for auditing and system log analysis.