Greg Donald wrote: > On Tue, Sep 28, 2010 at 11:51 AM, Michael Pavling <[email protected]> > wrote: >>>> Do not use regexes to validate e-mail addresses. >>> >>> Pffft. >> >> Nah, I'm with Marnen on this. > > You might get away without validating email addresses for a small > site, one where you can easily bulk-delete bounced messages. For a > large site you're creating a ton of extra work for someone, all > because you can't be bothered to write a simple regex.
A "simple" regex won't do it. The range of legitimate e-mail address forms is simply too great. Go read RFC 2822 and http://www.linuxjournal.com/article/9585&ved=0CBYQFjAC&usg=AFQjCNHU_zypiBJyMSvi-aD2ueMftTOecg > I couldn't imagine paying a marketing company for new users and not at > least doing a simple regex validation on the email address as they > arrive. You guys are really in-experienced. I'm experienced enough to know that e-mail addresses are a lot more complex than inexperienced people think. Go educate yourself with the references above. > > > -- > Greg Donald > destiney.com | gregdonald.com 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.

