How to add comments in Regex
This article explains how you can use comments in Rule Regex to comment on entries within the regex. Important
Comments can only be done within Rule Regex and has a very distinct format.
A comment is formatted like so: (?#comment here)regex
To create more than a single option, or comment, you separate them with a pipe |, and repeat the process: (?#comment here)regex|(?#comment there)regex2
An example of comments within Rule Regex is as follows:
(?#Comment number 1)^$|(?#Comment number 2)Marketing Medium What this does is look for either an empty entry, or for Marketing Medium in the subject line. When this is used in a rule for detection the detection is completed successfully.
