title: Alternation operator inside square brackets does not work
body: <p>I'm creating a javascript regex to match queries in a search engine string. I am having a problem with alternation. I have the following regex:</p>
  
  <pre><code>.*baidu.com.*[/?].*wd{1}=
  </code></pre>
  
  <p>I want to be able to match strings that have the string 'word' or 'qw' in addition to 'wd', but everything I try is unsuccessful. I thought I would be able to do something like the following:</p>
  
  <pre><code>.*baidu.com.*[/?].*[wd|word|qw]{1}=
  </code></pre>
  
  <p>but it does not seem to work. </p>