写个简单的,先把数字匹配出来:<?php
$str='中文4524354352';
$pattern="(\d+)";
preg_match_all($pattern,$str,$match);$num = $match[0][0]; //获得数字
$char = str_replace($num, '', $str); //获得中文
echo $num.'--'.$char;
?>
$str='中文4524354352';
$pattern="(\d+)";
preg_match_all($pattern,$str,$match);$num = $match[0][0]; //获得数字
$char = str_replace($num, '', $str); //获得中文
echo $num.'--'.$char;
?>
preg_match('/(.*?)(\d{8,})$/', $s, $r);
print_r($r);Array
(
[0] => 中文4524354352
[1] => 中文
[2] => 4524354352
)