2012-05-25 13:20:09
This javascript function validates an email address. It returns true if an valid email address is passed otherwise returns false.
__code__
function isEmail(s)
{
var e = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,4}$/;
if(s.match(e))
return true;
else
return false;
};
__code__
;3421;2012-05-25 13:20:09__s__This javascript function validates an email address. It returns true if an valid email address is passed otherwise returns false.
__code__
function isEmail(s)
{
var e = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,4}$/;
if(s.match(e))
return true;
else
return false;
};
__code__
__s__~u=Zac~site=NULL__s__Regular expression to validate email address in javascript__s____m__
17,CSS;15,javascript;16,javascript CSS;8,XML C/C++;10,XML converter;12,XML data warehouse;13,XML database;4,XML editor;1,XML general;11,XML HTML;7,XML java;6,XML javascript;5,XML parser;9,XML PHP;2,XML schema;3,XML syntax;14,XPath;