Regular Expression to Validate Case-Sensitive Email Address.

vishalneeraj-24503
Posted by vishalneeraj-24503 under JavaScript category on | Points: 40 | Views : 200
<script type = "text/javascript" language = "javascript">
function validateCaseSensitiveEmail(obj)
{
var reg = /^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$/;

if (reg.test(obj))
{
return true;
}
else
{
return false;
}
}
</script>

Comments or Responses

Login to post response