Check for valid email address


#1

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

Thanks in advance
Sijo


#2

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 removed_email_address@domain.invalid Could you please tell
how can I check that?

Thanks in advance
Sijo

Look into regular expressions and try it yourself


#3

On Wed, Nov 5, 2008 at 2:46 AM, Wouss B. removed_email_address@domain.invalid 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 removed_email_address@domain.invalid 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