procmail
[Top] [All Lists]

Re: recipe not working correctly

2001-09-26 13:20:34
On Wed, Sep 26, 2001 at 12:43:14PM -0700, Denis Perelyubskiy wrote:
i think the purpose was to match Sex or sEX anywhere, so
perhaps a better thing to do would be to add a '.' before
the last '*' as opposed to dropping the '*' altogether ?

No. The [Xx] specifies there must be one, and only one, x. A * after that
would make that "zero or more" making the x entirely optional. Thus "sent"
matches, as would "sex" and "sexxxxxxx". A .* at the end of the expression
might seem to make sense at first, but procmail already assumes it, thus
adding it in is redundant.

-- 
Andrew Edelstein        -       andrew(_at_)pure-chaos(_dot_)com
http://andrew.pure-chaos.com

Everything down here in the States is bigger! Even the sky seems closer!
                                Sillz
_______________________________________________
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>