try this one
<script type="text/javascript">
function validateCaseSensitiveEmail() {
var email = document.getElementById('txtEmail').value;
var reg = /^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$/;
if (reg.test(email)) {
alert("Valid");
}
else {
alert("In Valid");
}
}
</script>