function removeColorCode($text) {
      return preg_replace('/\\^([0-9])/ie', '', $text);
    }
The above code gives a deprecation warning on Echelon B3 i think after upgrading to PHP 5.5.29 by our host provider
    function removeColorCode($text) {
      return preg_replace('/\\^([0-9])/ie', '', $text);
    }
The above code gives a deprecation warning on Echelon B3 i think after upgrading to PHP 5.5.29 by our host provider
 
    
    In this specific case, just remove the /e it does nothing here.
You can also remove the /i
So your code becomes:
function removeColorCode($text) {
  return preg_replace('/\^[0-9]/', '', $text);
}
