RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
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: The rating for this expression. Chin Bae
   Displaying page 1 of 1 pages; Items 1 to 1

Copyright © 2001-2025, RegexAdvice.com | ASP.NET Tutorials