title: Java regular expression subsearch in a single process?
body: <p>I'm trying to get an HTML source code meta tag "name" attribute value in a single regular expression. Is this possible?
  Right now I'm running a regular expression to get all meta tags:</p>
  
  <pre><code>"&lt;meta.*?&gt;"
  </code></pre>
  
  <p>I'm storing all matches into a List&lt;String&gt;, and then I run a second regular expression on those results to get the "name" attribute value:</p>
  
  <pre><code>"name=\".*?\""
  </code></pre>
  
  <p>Is there a way of doing this with a single regular expression? I just want to store the "name" attribute ONLY of meta tags, ignoring other HTML tags.</p>
  
  <p>Thanks!</p>