Posted By

chrisdpratt on 09/11/09


Tagged

email


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

Tyster
wizard04


RFC 2822-compliant (mostly) Email Address Regular Expression


 / Published in: Regular Expression
 

URL: http://www.regular-expressions.info/email.html

This regular expression will match almost all valid email addresses. Omits email addresses containing double-quotes and square brackets, which while valid according to RFC 2822, are almost never used.

  1. [a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?

Report this snippet  

You need to login to post a comment.