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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Email - RFC 2821, 2822 Compliant
Expression
^((([!#$%&'*+\-/=?^_`{|}~\w])|([!#$%&'*+\-/=?^_`{|}~\w][!#$%&'*+\-/=?^_`{|}~\.\w]{0,}[!#$%&'*+\-/=?^_`{|}~\w]))[@]\w+([-.]\w+)*\.\w+([-.]\w+)*)$
Description
According to RFC 2821 (<see cref="http://tools.ietf.org/html/2821"/>) and RFC 2822 (<see cref="http://tools.ietf.org/html/2822"/>), the local-part of an email addresses may use any of these ASCII characters: 1. Uppercase and lowercare letters 2. The digits 0 through 9 3. The characters, !#$%&'*+-/=?^_`{|}~ 4. The character "." provided that it is not the first or last character in the local-part.
Matches
Non-Matches
Author Rating: The rating for this expression. Dave Black
Source
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Title: Problem with regex
Name: Anonymous123
Date: 4/27/2022 1:33:42 PM
Comment:
It will not detect if they use ip adress as server part.


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