Email Validation Javascript Regular Expression
<p>Good Evening, 
I am working on creating a regular expression to validate email addresses in Javascript. I have the function working, however I know this expression could be written better. How could I improve it? </p>

<pre><code>function checkEmailAddress(inputEmailAddy){
    var regex = new RegExp(\"^([A-Z][a-z][0-9][_][-][.])+\@([A-Z][a-z][0-9][_][-][.])+\.([A-Za-z]{2,4})$/\");

    return (regex.test(inputEmailAddy) == 1 ? 1 : -1);
}
</code></pre>

<p>Thanks,
Mike</p>
