Check for valid email address

Hi
    I have a text field mail_id I have to prevent the user to enter only
a valid mail id For example user@somdomain.com Could you please tell
how can I check that?

Thanks in advance
Sijo

···

--
Posted via http://www.ruby-forum.com/.

Sijo Kg wrote:

Hi
    I have a text field mail_id I have to prevent the user to enter only
a valid mail id For example user@somdomain.com Could you please tell
how can I check that?

Thanks in advance
Sijo

Look into regular expressions and try it yourself

···

--
Posted via http://www.ruby-forum.com/\.

This is a good place to start for regular expressions for email:
How to Find or Validate an Email Address . The site itself is good
overall.

Regards,
Craig

···

On Wed, Nov 5, 2008 at 2:46 AM, Wouss Bla <wvdongen@zonnet.nl> wrote:

Sijo Kg wrote:
> Hi
> I have a text field mail_id I have to prevent the user to enter only
> a valid mail id For example user@somdomain.com Could you please tell
> how can I check that?
>
> Thanks in advance
> Sijo

Look into regular expressions and try it yourself