[Mailman-Users] RegEX for banning

Mark Sapiro mark at msapiro.net
Thu Apr 17 01:46:24 CEST 2008


Mel Sojka wrote:

>I have a client that want to ban all subscriptions from .pl and .ru what 
>would be the regex under 2.1.9.


^.*\.pl$
^.*\.ru$

You could combine it in one

^.*\.(pl|ru)$

but it's probably clearer to leave it as two. See
<http://docs.python.org/lib/re-syntax.html>.

-- 
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