javascript validation for email address
Moderator: General Moderators
javascript validation for email address
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
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
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
This will still require validation on the server side handling the submission..
Take a look here: viewtopic.php?t=61896&highlight=validateemailformat
Take a look here: viewtopic.php?t=61896&highlight=validateemailformat
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
Response: No.PHPycho wrote:Request:
make my work simple
just modify above pattern to work for php.ycho@gmail.com
thanks
- shiznatix
- DevNet Master
- Posts: 2745
- Joined: Tue Dec 28, 2004 5:57 pm
- Location: Tallinn, Estonia
- Contact:
This will give you more information on how to use regex to validate an email address. just port this to javascript no problem:
validateEmailFormat()
validateEmailFormat()
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
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.PHPycho wrote:Request:
make my work simple
just modify above pattern to work for php.ycho@gmail.com
thanks