|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Sasa Babic (sb_at_pharmacy.bg.ac.yu)
Date: Mon Dec 02 2002 - 09:12:50 CST
On Mon, Dec 02, 2002 at 01:59:41PM +0000, Simon White wrote:
> 02-Dec-02 at 11:44, Domingo Antonio (domingo
netcomp.com.br) wrote :
>
> > And finaly, my rule above ( this rule is in all 3 files *_checks )
> > /name=\"*\.(BAT|COM|PIF|DLL|dll)\"/ REJECT NO SPAM HERE BABY!!!!
>
> /name=\".*\.(bat|com|pif|dll)\"/ REJECT message etc
>
> Check if PCRE is case sensitive or not. (.*) is "match anything" in
> regexp, not just (*) which means 1 or more of the previous token.
>
> Your regexp means match name= followed by one or more " followed by a
> dot, then an extension, then another "
Sorry for nittpicking, but your regexp means one and only one " followed
by a dot etc. One other thing, no need for escaping \". Just a plain "
would be enough.
I supose you'd want to put:
/name="?.*\.(bat|com|pif|dll)"?/ REJECT <message>
Someone better correct me if I'm wrong. :)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]