php preg_match_all for specific value : <p>I have a html content which has a URL fragment looks like following:</p>

<pre><code>&lt;a href="#/news/0294928/what-a-great-idea"&gt;
</code></pre>

<p>What I need to do is just to grab the number followed by #/news/</p>

<p>Any good idea? 
I tried following, but it gets only 4 results for me</p>

<pre><code>preg_match_all('/&lt;a href="#\/news\/(.+)\/?\"?&gt;/i', $html_cont, $matches );
</code></pre>

<p>Please help me,
Thanks.</p>
