Before I respond, are you saying that in a single input you are gathering 
multiple email addresses?


On Monday, July 6, 2015 at 11:58:39 AM UTC-4, StepaAr wrote:
>
> I have a couple questions.
>
> 1) I have a couple of  emails.They are separated between  buy comma or 
> space.How to find which one is correct? I was thinking using regular 
> expression like this one :
>
> /\A[\w+\-.]+@[a-z\d\-]+(\.[a-z]+)*\.[a-z]+\z/i
>
> 2)How to put valid email address  to database ?
>
> 3)If some email address is not valid then i have to give a massage using 
> client-side which email are not valid
> I was  thinking javascript.But how?I don't know to use rails and javascript 
>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/0b408672-9179-455f-8ff3-7c257badd83c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to