$str = '3.33L高功率'; $str = preg_replace("/[a-zA-Z][\x{4e00}-\x{9fa5}]+/u",'',$str);//替换为空 echo $str;
输出:3.33