title: Javascript replace method with both array and regex
body: <p>How i can replace any character except 0-9 a-z and and array of some characters with '' (nothing).</p>
  
  <p>My code is look like this</p>
  
  <pre><code>Var pCharArray = ['l', 'o', 'c'];//local characters
  Var stringOrginal = 'Some Text';
  stringOrginal.replace(/(^[0-9][a-z]pCharArray)/g, '');
  </code></pre>
  
  <p>Every character that is not 0-9 <strong>AND</strong> not a-z <strong>AND</strong> not in pCharArray, should be removed.</p>