Nadal wrote: > I am working on a rails3 project. Is there a tool to validate the > format of email address. It does not have to be fancy regex. Just a > few simple validations. However I don't want to reinvent the wheel?
No reasonable regex will do the trick, since e-mail addresses can take so many formats. Just check for an @ and one . , and trust the user for the rest. If you need to check whether the address works, send the user an activation code. Do not use regexes to validate e-mail addresses. Best, -- Marnen Laibow-Koser http://www.marnen.org [email protected] -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

