On 5/28/2014 12:44 PM, Arthur Glennie wrote:
Specific to spamassassin, are capture groups ever useful, or should I always use non-capture groups? Eg. (lit) vs. (?:lit)
This is not specific to SA, but the same in any regular expression. If you need to reference the captured string later, use a capture group, otherwise use a non-capture group.
In practice, this means that you should almost always use the non-capture groups with SA.
-- Bowie