ruby on rails - Email Regex. Is this regex expression appropriate? -


possible duplicate:
how use regular expression validate email addresses?

\a[\w.-]+\w@[a-z\d\-.]+\.[a-z]+\z

what think of above expression email validation. errors, loopholes? thank in advance support.

what think of above expression email validation.

for one, doesn't accept address. so, there's bug in there somewhere. suggest read rfc5322 carefully, describes valid syntax addresses quite clearly, although unfortunately hasn't yet been updated idn.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -