Martin Dennett (Gmail) wrote:

>Would that also be applicable to, for example, addresses after the @ 
>where more than one option exists? I'm thinking of "ms*.hinet.net" - 
>I've got a lot of banned members where the "*" is a number, and I don't 
>fancy having to block ms1.hinet.net, ms2.hinet.net, ms3.hinet.net etc.


You don't have quite the right syntax for regular expressions (they're
not wildcards). See <http://docs.python.org/lib/re-syntax.html>.

The above example can be coded as

[EMAIL PROTECTED]

The start of the string (^) followed by any character (.) zero or more
times (*) followed by @ followed by zero or more of anything (.*)
followed by a literal . (\.) followed by hinet followed by a literal .
(\.) followed by net followed by anything. This would match
[EMAIL PROTECTED], [EMAIL PROTECTED] and many others.

It could also be

[EMAIL PROTECTED]@ms[0-9]\.hinet\.net$

The start of the string followed by at at least one (+) non @ character
([EMAIL PROTECTED]) followed by @ms followed by a digit ([0-9]) followed by
.hinet.net followed by the end of the string.

It could also be many other regexps depending on how tight or loose you
want to be.

-- 
Mark Sapiro <[EMAIL PROTECTED]>       The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

------------------------------------------------------
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&amp;file=faq01.027.htp

Reply via email to