JavaScript - Validation...
-
Validation Forms and Functions (with Test Suite)
on the web...
-
CFormData JavaScript object
on the web...
- Validating email addresses
Last updated 08-11-2003...
|
| |
| |
Validating an email address
/////////////////////////////////////////////
// Functions to validate an email address
/////////////////////////////////////////////
function validateEmail(EmailValue)
{
var regexp = /^[\w_-]+(\.[\w_-]+)*@([a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9](\.){1})+([a-zA-Z][a-zA-Z0-9\-]*[a-zA-Z0-9])+$/
return regexp.test(EmailValue);
}
function validateEmail(EmailValue) {
if (EmailValue.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1)
return true;
else
return false;
}
|
|
|
Go back...
|
[
Home
]
[
Services
]
[
Expertise
]
[
Contact Us
]
© 2002-2009. Red Baritone. All rights reserved.
|