Does this e-mail-regex exclude valid addresses?

Posted by neo on Stack Overflow See other posts from Stack Overflow or by neo
Published on 2010-05-18T12:52:27Z Indexed on 2010/05/18 13:01 UTC
Read the original article Hit count: 139

Filed under:
|
|

I tried to create a regular expression which catches all RFC-valid addresses but it's ok if some false-positives come through (though hopefully not so many). This is waht I came up so far:

/^\b\S+@\S+\.[^\s@]{2,}\b$/

Is there any RFC-valid address which doesn't match against this expression or do you have any suggestions to improve it? I don't mind the false positives but I would be glad if you show me a few, too.

© Stack Overflow or respective owner

Related posts about email

Related posts about email-address