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
Post a Comment