Validating e mail

Posted by / 17-Apr-2016 19:05

Validating e mail

Some things to improve: Instead of new Reg Exp, just try writing the regexp out like this: Here is a very good discussion about using regular expressions to validate email addresses; "Comparing E-mail Address Validating Regular Expressions" Here is the current top expression, that is Java Script compatible, for reference purposes: /^[-a-z0-9~! ] )*@([a-z0-9_][-a-z0-9_]*(\.[-a-z0-9_] )*\.(aero|arpa|biz|com|coop|edu|gov|info|int|mil|museum|name|net|org|pro|travel|mobi|[a-z][a-z])|([0-9]\.[0-9]\.[0-9]\.[0-9]))(:[0-9])? $/i My knowledge of regular expressions is not that good.That's why I check the general syntax with a simple regular expression first and check more specific options with other functions afterwards.It is a stable document and may be used as reference material or cited from another document.

This section describes the status of this document at the time of its publication. A list of current W3C publications and the latest revision of this technical report can be found in the W3C technical reports index at

XML is an application profile or restricted form of SGML, the Standard Generalized Markup Language [ISO 8879].

By construction, XML documents are conforming SGML documents.

This document specifies a syntax created by subsetting an existing, widely used international text processing standard (Standard Generalized Markup Language, ISO 8886(E) as amended and corrected) for use on the World Wide Web.

It is a product of the XML Core Working Group as part of the XML Activity. As a convenience to readers, it incorporates the changes dictated by the accumulated errata (available at to the Fourth Edition of XML 1.0, dated 16 August 2006.

validating e mail-89validating e mail-30validating e mail-27

This may not be not the best technical solution, but this way I'm way more flexible and faster.