Useful/interesting read: "I knew how to validate an e-mail address until I read the RFC" [1].
And a full regex for validating e-mails per the RFC is available here[2], not that you'd want to use it. [1] http://haacked.com/archive/2007/08/21/i-knew-how-to-validate-an-email-address-until-i.aspx [2] http://www.ex-parrot.com/~pdw/Mail-RFC822-Address.html Cheers, AT On Mon, Dec 19, 2011 at 3:51 PM, Ian Kelly <[email protected]> wrote: > On Mon, Dec 19, 2011 at 9:36 AM, Maxim Badika <[email protected]> wrote: > > Hello all! > > > > i found that > > > > email_re.search(u'[email protected].') # with dot at the end of > > address > > > > returns true. I think that is incorrect. > > Thanks. > > That is actually correct, and it is equivalent to "[email protected]". > See RFC 3696. > > The root of the domain name tree is known as "." and the TLDs are > technically "com.", "edu.", "uk.", etc. When discussing domains below > the TLDs, the trailing dot is normally omitted ("domain.com"), but > applications are still required to accept it > > Cheers, > Ian. > > -- > You received this message because you are subscribed to the Google Groups > "Django developers" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/django-developers?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.
