Remove an underscore with Regex in JavaScript
<p>Like the title says, i would like to remove an underscore within a String with a regex. This is what i have: </p>

<pre><code>  function palindrome(str) {

     str = str.toLowerCase().replace(/[^a-zA-Z]/g, '',/\s/g, '',/[0-9]/g,'');  
        if (str.split("").reverse().join("") !== str) {
           return false;
        }
        else {
           return true;
        }
   }
palindrome("eye");
</code></pre>