title: PHP: How to use Regex to obtain text within link tags
body: <p>I would like to obtain the text within these link tags:</p>
  
  <pre><code>&lt;a target="_blank" class="timestamp" href="http://www.link.com/1"&gt;10:55 am&lt;/a&gt;
  &lt;a target="_blank" class="timestamp" href="http://www.link.com/2"&gt;3:30 pm&lt;/a&gt;
  </code></pre>
  
  <p>So far, I have:</p>
  
  <pre><code>preg_match_all('/&lt;a (.*?)&lt;\/a&gt;/s', $html, $matches);
  print_r($matches[1]);
  </code></pre>
  
  <p>Unfortunately, it returns everything between the two a's. Is there a way to just get the text between the a-tags, <strong>meaning 10:55 am and 3:30 pm</strong>, and nothing else?</p>