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 [email protected] Could you please tell
how can I check that?

Thanks in advance
Sijo

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 [email protected] Could you please tell
how can I check that?

Thanks in advance
Sijo

Look into regular expressions and try it yourself

On Wed, Nov 5, 2008 at 2:46 AM, Wouss B. [email protected] 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 [email protected] Could you please tell
how can I check that?

Thanks in advance
Sijo

Look into regular expressions and try it yourself

This is a good place to start for regular expressions for email:
http://www.regular-expressions.info/email.html . The site itself is good
overall.

Regards,
Craig

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