[Mailman-Users] Expressions to reduce spam

Mark Sapiro mark at msapiro.net
Sun Nov 13 22:55:02 EST 2016


On 11/13/2016 03:57 PM, Larry Kuenning wrote:
> On 11/13/2016 5:17 PM, Cyndi Norwitz wrote:
> 
>> My latest failure is: ^[^@]+@(.*\.)*\.top$
> 
> It looks like what fails here is that the expression requires two dots
> before "top":  someone at something..top would be caught but not
> someone at something.top.  So try this:
> 
> ^[^@]+@(.*\.)*top$
> 
> Or probably better:
> 
> ^[^@]+@[^@]+\.top$
> 


Or even just

^.*\.top$

Or to get more than one tld with one regexp

*.*\.(site|win|othertop)$

-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan


More information about the Mailman-Users mailing list