Possible Duplicate:
How to use a regular expression to validate an email addresses?
\A[\w.-]+\w@[a-z\d\-.]+\.[a-z]+\z
What do you think of the above expression for email validation. Any errors, any loopholes? Thank in advance for the support.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For one, it doesn’t accept my address. So, there’s obviously a bug in there somewhere. I suggest you read RfC5322 carefully, it describes the valid syntax for addresses quite clearly, although unfortunately it hasn’t yet been updated for IDN.