Regular Expression Checking For Proper Extention Names
<p>I am an issue with my javascript calling valid extentions invalid when they should pass. Ive used this regular expression in server side code and it worked fine for me. 
I verified that the value the reg expression is checking against is valid as well.</p>

<p>Am I declaring reg expression wrong maybe in the javascript?</p>

<pre><code> var ck_name = /^.+\.((gdf)|(GDF))$/;
 var chldValue = chld.value.substring(chld.value.length - 4, chld.value.length);
    alert(chldValue);

    if (!ck_name.test(chldValue)) {
        errors[errors.length] = "File is NOT a GDF file";
}
</code></pre>
