javascript validation for email address

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
PHPycho
Forum Contributor
Posts: 336
Joined: Fri Jan 06, 2006 12:37 pm

javascript validation for email address

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

This will still require validation on the server side handling the submission..

Take a look here: viewtopic.php?t=61896&highlight=validateemailformat
User avatar
PHPycho
Forum Contributor
Posts: 336
Joined: Fri Jan 06, 2006 12:37 pm

Post by PHPycho »

Request:
make my work simple
just modify above pattern to work for php.ycho@gmail.com
thanks
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

PHPycho wrote:Request:
make my work simple
just modify above pattern to work for php.ycho@gmail.com
thanks
Response: No.
User avatar
PHPycho
Forum Contributor
Posts: 336
Joined: Fri Jan 06, 2006 12:37 pm

Post by PHPycho »

Ok
as your wish...
Thank you
User avatar
PHPycho
Forum Contributor
Posts: 336
Joined: Fri Jan 06, 2006 12:37 pm

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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?
User avatar
PHPycho
Forum Contributor
Posts: 336
Joined: Fri Jan 06, 2006 12:37 pm

Post by PHPycho »

Simply Money !!!!
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post 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()
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post 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.
Post Reply