Test, validate and match regular expressions
This regex parses error notification emails by extracting key fields from both the subject and body. It matches a subject line containing a tracking ID that starts with 'ST' followed by digits and a numeric identifier, then captures the remark text between 'Text:' and 'Code:' in the body. It is useful for automated log analysis, alerting systems, or email processing tools that need to extract error details from incoming messages.