procmail
[Top] [All Lists]

Re: Regexp help

2002-04-26 14:57:37
I wrote: 
    :0:
    * MYARG ?? \<interesting\.domain\.kom\>
    mymailbox

and:
    :0:
    * 2 ?? \<interesting\.domain\.kom\>
    mymailbox

But at the start of the regular expression '\' is used to escape the
magic condition-altering characters and so '\<' matches a literal angle
bracket rather than a 'not a word character'.  So the correct versions
of these could be:

  ... ?? \\<...
or
  ... ?? ()\<...

Thanks to David for nudging me about that.

Martin
-- 
Martin McCarthy                 /</    http://procmail.non-prophet.org
    `Procmail Companion'        \>\
     Addison Wesley             /</                  PGP key available
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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