title: How to get html tag attribute values using JavaScript Regular Expressions?
body: <p>Suppose I have this HTML in a string:</p>
  
  <pre><code>&lt;meta http-equiv="Set-Cookie" content="COOKIE1_VALUE_HERE"&gt;
  &lt;meta http-equiv="Set-Cookie" content="COOKIE2_VALUE_HERE"&gt;
  &lt;meta http-equiv="Set-Cookie" content="COOKIE3_VALUE_HERE"&gt;
  </code></pre>
  
  <p>And I have this regular expression, to get the values inside the <code>content</code> attributes:</p>
  
  <pre><code>/&lt;meta http-equiv=[\"']?set-cookie[\"']? content=[\"'](.*)[\"'].*&gt;/ig
  </code></pre>
  
  <p>How do I, in JavaScript, get all three <code>content</code> values?</p>
  
  <p>I've tried:</p>
  
  <pre><code>var setCookieMetaRegExp = /&lt;meta http-equiv=[\"']?set-cookie[\"']? content=[\"'](.*)[\"'].*&gt;/ig;
  var match = setCookieMetaRegExp.exec(htmlstring);
  </code></pre>
  
  <p>but <code>match</code> doesn't contain the values I need. Help?</p>
  
  <p>Note: the regular expression is already correct (<a href="http://scriptular.com/#%3Cmeta%20http-equiv=%5B%5C%22%27%5D?set-cookie%5B%5C%22%27%5D?%20content=%5B%5C%22%27%5D%28.%2a%29%5B%5C%22%27%5D.%2a%3E%7C%7C%7C%7Ci%7C%7C%7C%7C%5B%22mmm%3Cmeta%20http-equiv=%5C%22set-cookie%5C%22%20content=%5C%22bb%5C%22%3Easd%22,%22mmm%3Cmeta%20http-equiv=%5C%22set-cookie%5C%22%20content=%5C%22cc%5C%22%3Easd%22%5D" rel="noreferrer">see here</a>). I just need to match it to the string.
  Note: I'm using NodeJS</p>