How to validate EMail domains in particular
<p>Can anyone give me the correct code for using two domains in Email validation for example: <code>test@gmail.com</code> or <code>test1@yahoo.com</code>. <code>Gmail</code> and <code>Yahoo</code>  are the two domains I need to     validate.</p>

<p>The actual code  is:</p>

<pre><code>"email": {
    "regex": "/^[a-zA-Z0-9_\.\-]+\@([a-zA-Z0-9\-]+\.)+[a-zA-Z0-9]{2,4}$/", 
    "alertText": "* Invalid Domain Name - It should be either gmail or yahoo"},
</code></pre>

<p>This code accepts all domain, but i need only 2 domains to validate.</p>
