(.*?)<\/a>/",$x,$m); preg_replace("/,(.+?)/","",$m[1]); echo "".$m[2]."(".$m[1].")"; // latest topic + time ?>