title: How to make PHP regex to match text inside a HTML <label>
body: <p>I'm trying to build PHP regex that will match ONLY the text inside a HTML <code>label</code>.</p>
  
  <p>In the example below it should match the <code>Blah blah blah</code> text contained inside the <code>&lt;label&gt;</code> tags.</p>
  
  <p>Also the <code>for</code> and <code>id</code> attributes of the <code>label</code> change often, so I can't match based on those.</p>
  
  <pre><code>&lt;li class='gchoice_3_4_0'&gt;
      &lt;input name='input_4' type='radio' value='gquiz4330f6f1q'  id='choice_3_4_0' tabindex='28'   /&gt;
      &lt;label for='choice_3_4_0' id='label_3_4_0'&gt;Blah blah blah&lt;/label&gt;
  &lt;/li&gt;
  </code></pre>
  
  <p>For far this is the best I've come up with: <code>&lt;label(.*?)&gt;(.*?)&lt;\/label&gt;</code></p>
  
  <p>But it's matching the entire HTML <code>label</code> element (<code>&lt;label for='choice_3_4_0' id='label_3_4_0'&gt;Blah blah blah&lt;/label&gt;</code>) instead of just the text inside (<code>Blah blah blah</code>).</p>