public function strip_colors($text) { $p = "/\d{1,2}(,\d{1,2})?/"; $text = preg_replace($p,'',$text); $text = str_replace(array('','','','',''),array('','','','',''),$text); return $text; }