for($i = 0; $i < $num; $i++)
{
$letters = array('<div class="postImg-wrap" style="float: right; clear: right; padding: 4px 4px 2px;"><img src="', '/<span style="font-weight: bold">\xCF+.(.*)/','"font-family:"','/<span style="font-weight: bold">Продолжительность.(.*)\s++/');
$fruit = array('<div class="postImg-wrap" style="float: left; clear: left; padding: 4px 4px 2px;"><img onload="imgFit(this, screen.width-400);" onclick="imgFit(this, screen.width-400);" width="150" height="200" src="', 'font-family:Verdana','тест');
[COLOR="Red"]preg_match('#<div class=\"postImg-wrap\" style=\"float: right; clear: right; padding: 4px 4px 2px;\"><img src=\"(.*)</div>#isU', $postrow[$i]['post_html'], $ret);[/COLOR]
$resultat = str_replace($letters,$fruit,[COLOR="Red"]$ret[/COLOR]);
echo "<td width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">";
echo "<table border=\"1\">
<tr>
<td><a href=http://dxp.ru/viewtopic.php?t=".$postrow[$i]['topic_id']."><center>".$postrow[$i]['topic_title']."</td>
</tr>
<tr>
<td><a href=http://dxp.ru/viewtopic.php?t=".$postrow[$i]['topic_id'].">".[COLOR="Red"]$resultat[0][/COLOR]."></a></td>
</tr>
</table></td>";
}
echo "</tr>";
echo "<table>";