Regular Expression-email RFC 5322,Top Level Domain





2
Date Submitted Sun. Jul. 12th, 2009 10:07 PM
Revision 1 of 1
Scripter Cloudgen
Tags DOMAIN | Email | Expression | Level | Regular | Top
Comments 0 comments
The regular expression include the following:
Local part include (at least 2 characters):
1. Uppercase and lowercase English letters (a-z, A-Z)
2. Digits 0 through 9
3. Characters ! # $ % & ' * + - / = ? ^ _ ` { | } ~
4. Character . (dot) provided that it is not the first or last character, and provided also that it does not appear two or more times consecutively.

Top Level Domains include:
1. country-code top-level domains (ISO 3166)
2. generic top-level domains
3. sponsored top-level domains
4. infrastructure top-level domain

Detailed Discussion will be found: The regular expression for checking email
^[\w!#\$%&'\*\+\-\/=\?\^_`\{\|\}~][\w!#\$%&'\*\+\-\/=\?\^_`\{\|\}~\.]*[\w!#\$%&'\*\+\-\/=\?\^_`\{\|\}~]\@[^\@]+\.(AERO|ARPA|ASIA|BIZ|CAT|COM|COOP|EDU|GOV|INFO|INT|JOBS|MIL|MOBI|MUSEUM|NAME|NET|ORG|PRO|TEL|TRAVEL|A[C-GL-OQ-UWXZ]|B[ABD-JM-OR-TVWYZ]|C[ACDF-IK-ORUVX-Z]|D[EJKMOZ]|E[CEGR-U]|F[I-KMOR]|G[ABD-IL-NP-UWY]|H[KMNRTU]|I[DEL-OQ-T]|J[EMOP]|K[EG-IMNPRWYZ]|L[A-CIKR-VY]|M[AC-EGHK-Z]|N[ACE-GILOPRUZ]|OM|P[AE-HKL-NR-TWY]|QA|R[EOSUW]|S[A-EG-ORT-VYZ]|T[CDF-HJ-PRTVWZ]|U[AGKMSYZ]|V[ACEGINU]|W[FS]|XN|Y[ETU]|Z[AMW])$

Comments

There are currently no comments for this snippet.

Voting

Votes Up


Scripter Cloudgen
Scripter elsevero

Votes Down