title: Why isn't this regular expression returning anything?
body: <pre><code>preg_match_all('/&lt;p&gt;.*:&lt;/p&gt;/gm', $content, $matches);
  var_dump($matches); //ouput is NULL
  </code></pre>
  
  <p>I want something like this: <code>&lt;p&gt;The Ideal Candidate:&lt;/p&gt;</code> to match but not <code>&lt;p&gt;Some more text&lt;/p&gt;</code>. The requirement being it must contain a <code>&lt;p&gt;</code> tag followed by some text and at the end it must contain a <code>:</code> followd by the end of the p tag (<code>&lt;/p&gt;</code> ).</p>
  
  <p>Note: I tried escaping the ending p tag, but it is still not working. 
  Updated code:</p>
  
  <pre><code>preg_match_all('/&lt;p&gt;.*:&lt;\/p&gt;/gm', "&lt;p&gt;The Ideal Candidate:&lt;/p&gt;", $matches);
  </code></pre>