CEP-583 changed ereg-replace to preg-replace