title: PCRE/PHP regex not matching last "item"
body: <p>Here's a regex that I've cobbled up: </p>
  
  <pre class="lang-none prettyprint-override"><code>/(.*={76}\s)?\s*(.*?)\s\-\-\s(\d{2}\/\d{2}\-\d{2}\s\d{2}:\d{2})\s\s(.*?)\s(http:\/\/service.*?)\s(\-{76})/is
  </code></pre>
  
  <p>and here's the text I will be parsing: <a href="http://p.linode.com/7015" rel="nofollow">http://p.linode.com/7015</a></p>
  
  <p>and here's the replacement for the matched text:</p>
  
  <pre><code>&lt;item&gt;\n\t&lt;title&gt;$2&lt;/title&gt;\n\t&lt;pubDate&gt;$pubDate&lt;/pubDate&gt;\n\t&lt;description&gt;$4&lt;/description&gt;\n\t&lt;link&gt;$5&lt;/link&gt;\n&lt;/item&gt;\n\n
  </code></pre>
  
  <p>and finally, here's the output that I get: <a href="http://p.linode.com/7016" rel="nofollow">http://p.linode.com/7016</a></p>
  
  <p>I have <em>almost</em> come up with a regex needed to parse a block of text into RSS 2.0 XML markup. I've tested it with <a href="http://gskinner.com/RegExr/" rel="nofollow">RegExr</a> and RegexBuddy and it works perfectly <em>except</em> for the last "item" where there is no line breaks after the link (<a href="http://p.linode.com/7015" rel="nofollow">Line 269</a>).</p>
  
  <p>In short, <strong>the problem is the "iProperty" article in the text is not matched</strong>.</p>
  
  <p>Any regex gurus willing to help me troubleshoot what's wrong?</p>