Select Categories Below
Status: Closed Points: 60 Time: 16:57 - Sep 16, 2006
david
How do I validate an email address in javascript? I suppose I should use regular expressions, but I don´t know how to write it.
Categories:
Add Categories
When adding more than one category, separate them with commas.
Advertisement
jgivoni
Date:: Sep 16, 2006
Time:: 17:58
David, I use this function: function validateEmail(email) { var re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/ return email.match(re) } Takes the email address and returns true or false.
Time:: 18:03
Thanks, Jakob. Funny enough I found the exact same one when I was searching on google. But you'll get the points anyway :)
Question Answered
This question has been closed, and points have been rewarded to the following experts:
You're welcome however to comment or give additional information or if you wish, you have the ability to write an Answer Summary for the Summary Area.
Answer this Question
New User
Email:
Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address
Registered User
Username:
Password:
Forgot Your Password?
Enter your email address below and we will resend your login information to you.
Login Information Sent
Questions
Require Expressions Validator?
You have 100 characters to use
Rank
Expert
Points
1.
475
2.
262
3.
185
4.
162
5.
160
6.
75
7.
35
8.
25
9.
10.
Register today to share your knowledge with the community and be recognized and rewarded for your contributions.
Register Here
"Psst, Quomon is a great site. Pass it on." Tell a Friend | Link To Us | Save to Delicious | Digg it
Language Options
English:
Español:
Sponsors
Questions and Answers Software Real Estate Postcards Marketing Fulfillment