Page 1 of 1

javascript validation for email address

Posted: Mon Jan 29, 2007 9:03 am
by PHPycho
what is the javascript validation for the email address like
php.ycho@gmail.com

i used the simple validation like
"^\\w{1,}@\\w{1,}(\\.\\w{1,}){1,}$"
which works well for php@gmail.com but doesnot work for php.ycho@gmail.com
can anybody make a modification to above pattern to work for php.ycho@gmail.com
Thanks in advance to all of you

Posted: Mon Jan 29, 2007 9:14 am
by feyd
This will still require validation on the server side handling the submission..

Take a look here: viewtopic.php?t=61896&highlight=validateemailformat

Posted: Mon Jan 29, 2007 9:27 am
by PHPycho
Request:
make my work simple
just modify above pattern to work for php.ycho@gmail.com
thanks

Posted: Mon Jan 29, 2007 9:28 am
by feyd
PHPycho wrote:Request:
make my work simple
just modify above pattern to work for php.ycho@gmail.com
thanks
Response: No.

Posted: Mon Jan 29, 2007 9:38 am
by PHPycho
Ok
as your wish...
Thank you

Posted: Mon Jan 29, 2007 9:44 am
by PHPycho
Actually i dont have so much knowledge in regex....
and i have to do the work withing hour...and i thought forum is the best place..

Please help me in such case..
i appreciate for any help

Posted: Mon Jan 29, 2007 9:58 am
by feyd
That doesn't change my response. It's your work, not mine. I'm not getting paid for it; so why should I do your work for you?

Posted: Mon Jan 29, 2007 1:20 pm
by PHPycho
Simply Money !!!!

Posted: Mon Jan 29, 2007 1:26 pm
by shiznatix
This will give you more information on how to use regex to validate an email address. just port this to javascript no problem:

validateEmailFormat()

Posted: Mon Jan 29, 2007 3:06 pm
by RobertGonzalez
PHPycho wrote:Request:
make my work simple
just modify above pattern to work for php.ycho@gmail.com
thanks
Just a quick heads up, if you come here looking for someone to do work for you, please post in Job Hunt and make sure you detail how much you are willing to pay for help. This community is built on volunteers helping people help themselves. When it comes to working for people, we usually want to get paid.