Test, validate and match regular expressions
This regex matches a comma-separated sequence of key-value pairs in the format incident:value,eid:value,domain:value,contact:value. It captures each value after the colon, allowing values to start with a word character and continue with any characters. The (?i) flag makes it case-insensitive, and the gm flags allow matching across multiple lines. It is useful for extracting fields from structured log entries or data feeds.