title: Javascript regexp character matching
body: <p>I'm looking into using a jQuery password strength indicator and have found one that looks suitable.</p>
  
  <p>It increases the password strength score if special characters are detected:  </p>
  
  <pre><code>if (password.match(/(.*[!,@,#,$,%,^,&amp;,*,?,_,~].*[!,@,#,$,%,^,&amp;,*,?,_,~])/)){ score += 5 ;}
  </code></pre>
  
  <p>However I'd like to be able to specify additional special characters and because these lists of special characters are used in several places, I'd like to only specify the list once:</p>
  
  <pre><code>list = array(!,@,#,$,%,^,&amp;,*,?,_,~,[,],{,},(,));
  if (password.match(/(.*[list].*[list])/)){ score += 5 ;}
  </code></pre>
  
  <p>Is this possible?</p>