title: question with regex on this palindrome code?
body: <p>so this is my solution a long time ago, looked back at it and seem forgot what my regex do:</p>
  <pre><code>let palindrome = (str) =&gt; {
    // Good luck!
    var pattern     = /[`~!@#$%^&amp;*()_|+\\\s-=?;:'&quot;,.&lt;&gt;\{\}\[\]\\\/]/gi;
    var reversed    = str.replace(pattern, '').split('').reverse().join('').toLowerCase(), 
        notReversed = str.replace(pattern, '').split('').join('').toLowerCase();
    
    return Boolean(reversed === notReversed) ? true : false;
  };
  </code></pre>
  <p>can someone help me understand the regex? i'd appreciate alot to save time, i don't know why i did that or it can be improved?</p>