(.*?)<\/a>/ism", $file, $m); $outstr="onLoadColorifyHot(\""; foreach($m[2] as $n => $row) { if (!ereg(":",$row)) $outstr.="$row;"; } $outstr.="\");"; echo $outstr; ?>