[Mailman-Users] regex filtering spam

Paul Tomblin ptomblin at xcski.com
Mon Apr 3 23:06:02 CEST 2000


Quoting Seth Vidal (skvidal at phy.duke.edu):
> My first question is what regexp system do you use? python's I'd assume
> which is c's regex base.
> 
> So I did the following
> 
> From: .*@[^(larry)|(moe)|(curly)]\.duke\.edu.*

I don't know anything about Python's regexp library, but in Perl that would
*not* do anything close to what you want.  Square brackets [] match a single
character, and the caret ^ says match anything that *isn't* in the following
list.

I think what you're trying to do is

From: .*@(larry|moe|curly)\.duke.edu.*



-- 
Paul Tomblin <ptomblin at xcski.com>, not speaking for anybody
In 1665 Issac Newton became discouraged when he fell up a flight of
stairs.




More information about the Mailman-Users mailing list