procmail
[Top] [All Lists]

Re: Regex trouble:

1998-02-10 04:41:07
On Mon, 9 Feb 1998 17:40:28 -0700 (MST), Sherwood Botsford
<sherwood(_at_)math(_dot_)ualberta(_dot_)ca> wrote:
The manual for 3.10 says that procmail supports sthe same set
of regex's as egrep.

As Jari already pointed out, this is not really true. Your problem is
not with that, though: the problem is the dreaded leading backslash
problem. 

* +200^1 \!\!\!\!

(You don't need to backslash-escape shouts in any regex implementation
I know of. The backslash is harmless here, although you should be
aware that a leading backslash will often lead to problems in
Procmail.)

* +200^1 \$\$\$

Change this to * +200^1 [$][$][$] and you're fine. 

The FAQ has a section on this (yes, it's back up now, although the URL
temporarily resolves to a different host):

    <http://www.iki.fi/~era/procmail/mini-faq.html>

Hope this helps,

/* era */

-- 
 Paparazzi of the Net: No matter what you do to protect your privacy,
  they'll hunt you down and spam you. <http://www.iki.fi/~era/spam/>

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