title: Javascript REGEX: Ignore anything in between?
body: <p>How do I ignore anything in between with Javascript RegEx?</p>
  
  <p>For example, I want to detect all three words: <code>how</code> <code>are</code> <code>you</code> in that order. </p>
  
  <p>My regex:</p>
  
  <pre><code>var pattern = /([how]+[are]+[you]+)/i;
  
  pattern.test("howare"); //false &lt;--- expected (correct)
  pattern.test("areyou"); //false &lt;--- expected (correct)
  pattern.test("howareyou"); //true &lt;--- expected (correct)
  pattern.test(" howareyou! "); //true &lt;--- expected (correct)
  pattern.test("how are  you"); //false &lt;--- this should match!
  pattern.test("how areyou  "); //false &lt;--- this should match!
  </code></pre>
  
  <p>But then I want to ignore anything in between them.</p>