title: How can I remove the caret(^) from a string using a RegExp in Javascript?
body: <p>For some reason, I can't seem to find a good answer for this one.</p>
  
  <p>I have been trying to escape out the caret (\^), and to use the hex, octal, and other codes for the character using \xdd, \dddd, etc...</p>
  
  <p>But my replace regexp won't replace the caret (^) with anything. It seems to simply break the expression.</p>
  
  <p>Here is the code I am using:</p>
  
  <hr>
  
  <pre><code>var field,myExp;    
  
  // \x5E is supposed to represent the caret in Hex...
      myExp = / *[^a-z^A-Z^0-9\s\x5E]/gi;
  
  field = field.replace(myExp,"");
  alert(field);
  </code></pre>
  
  <hr>
  
  <p>Help!</p>