I'm using this:
:format => { :with => /^([...@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i }
On Sep 26, 7:54 pm, Nadal <[email protected]> wrote:
> I am working on a rails3 project. Is there a tool to validate the
> format of email address. It does not have to be fancy regex. Just a
> few simple validations. However I don't want to reinvent the wheel?
--
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.