Regexp and email list

I´ll have to validate a form containing an email list (just like that:
[email protected],[email protected],[email protected]). What´s
the regexp for this case? I´ve googled, but no answer.

Thanks in advance.

Felipe C. wrote:

I´ll have to validate a form containing an email list (just like that:
[email protected],[email protected],[email protected]). 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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs