I have a pregexpression and its not outputting anything. Can someone explain why this might be? I'm also new to learning this
preg_match_all("/\<b>\$(.*?)\<\/b\>/is", $res[0], $match);
foreach($match[0] as $value)
{
echo "<div class='prices' id='kgbdealsPrice'>".$value."</div>";
}
The string that I'm trying to get looks something like this
<tr>
<div>
</div>
<div>
<td>
</td>
<div>
<b>$ content </b>
</div>
</div>
</tr>
I even used regex coach to see if it'll get that
<b>$ content </b>
and it does get it. but its just not outputting it on my page?
Any suggestions?
Thanks
by the way, those div and td tags are just examples, the real one is a little more complex, but that shouldnt matter right? as long as there's only the <b>$ ... </b> text.