procmail
[Top] [All Lists]

Re: Two Questions: ORing rules

1998-03-10 10:31:01
Christopher Lindsey <lindsey(_at_)ncsa(_dot_)uiuc(_dot_)edu> writes:
...
2) If in such a case or ORed ruleset, how can I grab the particular 
portion of it that matched?  Ie: if I have
:0:
* A|B|C|D|E|F|G
foo

How can I set $MATCH to be one of (A..G)?

  :0
  * \/(a|b|c|d|e|f|g)

That would be:
        :0
        * ()\/(a|b|c|d|e|f|g)

The leading parens are needed to keep procmail from treating the leading
backslash specially.


Philip Guenther

<Prev in Thread] Current Thread [Next in Thread>