01-06 02:16:42.781 16033 16040 V ImageCapturewithZoom: The set zoom is 1
2025年05月06日 20:29
有2个网友回答
网友(1):
$str='01-06 02:16:42.781 16033 16040 V ImageCapturewithZoom: The set zoom is 1'; print substr($str,length($str)-1,1);#如果只是想要最后一个数字 if($str=~/set zoom is (\d)+/){ print $1;#如果想要固定格式后面的数字 }