Validating Free/Domain specific Email Address using Regular Expression.

Posted by vishalneeraj-24503 under JavaScript category on | Points: 40 | Views : 733
If we have specific domain address as,, and so on. Then write below function:-

<script type =" text/javascript">
function validate_free_domain_email(obj)
var reg = /^([\w-\.]+@(?!!![\w-]+\.)+[\w-]{2,4})?$/
if (reg.test(obj))
return true;
return false;

Comments or Responses

Login to post response