I am trying to grab numeric value(ie 105) using preg_match from html page, please check my html code following...
<p>
External Backlinks
</p>
<p style="font-size: 150%;">
<b>105</b>
</p>
And i have using following regex...
$url = 'http://www.example.com/test.html';
preg_match('#<p>External Backlinks</p><p style="font-size: 150%;"><b>([0-9\.]+)#', file_get_contents($url), $matches);
echo $matches[1];
But its not returning correct value, please help to fix up the above regex. thanks.