Anyone have a link handy to an RFC 821 compliant email address regex for Python?

Jean-Paul Calderone exarkun at divmod.com
Wed Aug 16 19:25:34 EDT 2006


On 16 Aug 2006 16:09:39 -0700, Simon Forman <rogue_pedro at yahoo.com> wrote:
>fuzzylollipop wrote:
>> I want to do email address format validations, without turning to ANTLR
>> or pyparsing, anyone know of a regex that is COMPLIANT with RFC 821.
>> Most of the ones I have found from google searches are not really as
>> robust as I need them to be.
>
>Would email.Utils.parseaddr() fit the bill?
>
>http://docs.python.org/lib/module-email.Utils.html#l2h-3944
>

This is for RFC 2822 addresses.

http://divmod.org/trac/browser/sandbox/exarkun/smtp.py

Jean-Paul



More information about the Python-list mailing list