Felipe Cruxen wrote:> I´ll have to validate a form containing an email list (just like that:
>
email1-WNbSnoOWcWBBDgjK7y7TUQ@public.gmane.org,email2-dL8jOpOjefR9Bbbejix+0A@public.gmane.org,email3-msFaK4W69ekqdlJmJB21zg@public.gmane.org).
What´s
> the regexp for this case? I´ve googled, but no answer.
>
> Thanks in advance.
this is per email
/^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i
btw, check out http://regexlib.com/ for cool regexp''s. i found this
site
to be a enormous repos for regexp''s. general fyi.
hth
--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---