Marnen Laibow-Koser wrote: > 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==AFQjCNHU_zypiBJyMSvi-aD2ueMftTOecg
Also RFC 5322 and the (just published, apparently) http://www.dominicsayers.com/isemail/ . 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.

