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

Discussion in 'Python' started by fuzzylollipop, Aug 16, 2006.

  1. 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.
     
    fuzzylollipop, Aug 16, 2006
    #1
    1. Advertising

  2. fuzzylollipop

    Simon Forman Guest

    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

    HTH,
    ~Simon
     
    Simon Forman, Aug 17, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ben Pfaff
    Replies:
    70
    Views:
    1,522
    Dan Pop
    Jan 27, 2004
  2. Tim Williams
    Replies:
    0
    Views:
    369
    Tim Williams
    Aug 17, 2006
  3. Zeynel
    Replies:
    1
    Views:
    583
    alex23
    Dec 6, 2010
  4. Ivan Shmakov
    Replies:
    3
    Views:
    1,229
    Kari Hurtta
    Feb 13, 2012
  5. Satish Talim

    TCPSocket and RFC 821

    Satish Talim, Jul 30, 2006, in forum: Ruby
    Replies:
    9
    Views:
    164
    Yohanes Santoso
    Jul 31, 2006
Loading...

Share This Page