title: extract meta tag using regex
body: <p>I need to extract meta tag from a string for which I am using <code>\&lt;meta[\s\S]*?\&gt;</code> but along with this, I want to ignore if a meta have some ignore (or someIgnore) attribute in it.   </p>
  
  <p><code>&lt;meta property="position" content="1" someIgnore ignore="metaextract"/&gt;</code>.<br>
  This is my sample function.   </p>
  
  <pre class="lang-js prettyprint-override"><code>
  function parseMetas(locals) {
      var str = locals.body, regex = /\&lt;meta[\s\S]*?\&gt;/g;
      if (regex.test(str)) {
          locals.body = str.replace(regex, '');
          locals.meta = str.match(regex).join('\n');
      }
  }
  
  </code></pre>