Displaying page
of
pages;
Items to
Title |
Test
Details
Email Validation
|
Expression |
^([a-zA-Z0-9]+([\.+_-][a-zA-Z0-9]+)*)@(([a-zA-Z0-9]+((\.|[-]{1,2})[a-zA-Z0-9]+)*)\.[a-zA-Z]{2,6})$
|
Description |
This pattern was based on this reference: http://www.remote.org/jochen/mail/info/chars.html
This expression allows only these symbols (+, -, _, or .) in the local part of the address, but no two consecutive symbols are allowed. The symbols behave like separators for alphanumeric atoms. The local part must begin and end with an atom. Therefore, local part cannot begin or end with a symbol.
For the domain name, I tested what was allowed at various domain registrars. While hyphens are allowed, domain names must abide by the following rules:
-can't begin or end with hyphen
-no more than two hyphens can appear consecutively
|
Matches |
|
Non-Matches |
|
Author |
Rating:
Chin Bae
|
Displaying page
of
pages;
Items to