On Jul 4, 12:26 pm, Diodeus <[EMAIL PROTECTED]> wrote: > On Jul 3, 5:33 pm, Tom Gregory <[EMAIL PROTECTED]> wrote: > > > It's a) fragile (every time a tld is added, you've got to go change > > your regex) b) allows invalid addresses (underscores in the domain > > name), and c) excludes valid email addresses (e.g. the '+' character > > in the local part of the address is legal). > > > As another example, you left out .asia, .biz, .jobs (apple must love > > this one!), .mobi, > > ....http://en.wikipedia.org/wiki/List_of_Internet_top-level_domains > > > If you *must* validate in javascript, you're better off with a looser > > script. The only solid way of validating is to send the user an > > email, and have them respond (click a link, etc.) > > > See also: > >en.wikipedia.org/wiki/E-mail_address > ><URL: http://uphpu.org/pipermail/uphpu/2005-December/004221.html > > > That's ok. I didn't write it and those are flaws I can live with.
When posting someone else's code, you should get their permission or if has been published somewhere, reference the source. You should also indicate the shortcomings when you suggest to someone else that they use it. -- Rob --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" 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-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
