$subject= "Citation flow <img src='/static/images/icons/help.png'>
</span>
</p>
<p style='font-size: 150%;'><b>11</b></p>";
$pattern="/Citation flow[.]+<b>([0-9]+)<\/b>/i";
preg_match_all($pattern, $subject,$matches,PREG_PATTERN_ORDER);
print_r($matches);
I want to capture the number 11 inisde the bold tags.. but my regex expression doesnt work.. why?
UPDATE:
I came up with this.. but I am not 100% it is the best solution:
$pattern="/Citation flow[\s\S]*<b>([0-9]+)<\/b>/i";