Test, validate and match regular expressions
This regex matches an XML-style element representing a PurposeOfUse attribute in audit log entries, capturing the value of the 'csd-code' attribute into a named group 'ATNAPurposeOfUse'. It is designed for extracting the purpose of use from ATNA (Audit Trail and Node Authentication) logs in SIEM use cases, enabling analysis of access intent. The non-greedy quantifier ensures it captures the value up to the closing quote, and the flags enable global matching across multiline logs. Use it to parse audit trails for compliance and security monitoring.