title: JavaScript - regex that matches in any order
body: <p>I have the following regex that returns keyword values:</p>
  
  <pre><code> var keywords = result.match(/&lt;meta name="keywords" content="(.*?)".*/i)[1];
  </code></pre>
  
  <p>I also need to be able to support situations where the "keywords" and the "content" properties  are in the reverse order e.g:</p>
  
  <pre><code>&lt;meta content="...." name="keywords"
  </code></pre>
  
  <p>Can anyone advise how I can support both orders?</p>