Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 05 Sep 2010 16:02:07 -0700
From:      perryh@pluto.rain.com
To:        frank@shute.org.uk
Cc:        drew@mykitchentable.net, freebsd-questions@freebsd.org
Subject:   Re: Regex Help For Procmail
Message-ID:  <4c84216f.w2295Zjs25%2BGOe/F%perryh@pluto.rain.com>
In-Reply-To: <20100905205910.GA82375@orange.esperance-linux.co.uk>
References:  <4C814262.5060504@mykitchentable.net> <4C814634.1000003@gmail.com> <4C8164C7.9000107@mykitchentable.net> <4C83C65B.6060508@mykitchentable.net> <20100905205910.GA82375@orange.esperance-linux.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
Frank Shute <frank@shute.org.uk> wrote:

> Drew, try this:
>
> * ^From:.*famous-smoke\.com
>
> I think it's not catching it because the period isn't backslash
> escaped ...

Unless there's some edge case that I'm not thinking of, adding a
backslash to escape a period will never convert a non-match into
a match.  An unescaped period in an RE matches any character,
including a period.  An escaped period matches only a period.

Adding the backslash _does_ better represent what the OP wants
to accomplish, but the lack of it is not the cause of the RE not
matching.  (I'm not sufficiently familiar with how procmail uses
REs to figure out what _is_ causing it not to match.)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4c84216f.w2295Zjs25%2BGOe/F%perryh>