I have a html content which has a URL fragment looks like following:
<a href="#/news/0294928/what-a-great-idea">
What I need to do is just to grab the number followed by #/news/
Any good idea? I tried following, but it gets only 4 results for me
preg_match_all('/<a href="#\/news\/(.+)\/?\"?>/i', $html_cont, $matches );
Please help me, Thanks.