$str = ‘你是234我是’;这种形式的字符串但是中间数字和前后的汉字个数都是不确定的。我想将前面的文字中间的数字和后面的文字分别提取出来,
提取第一部分汉字可以用
preg_match_all("/[\x80-\xff ]*(?=[0-9]+)/",$str,$str1);
提取数字可以用
preg_match_all("/[0-9]+(?=[\x80-\xff ]*)/",$str,$str2);
提取最后一部分我想用
preg_match_all("/(?<=[0-9]+)[\x80-\xff ]*/",$str,$str2);
却提示: Compilation failed: lookbehind assertion is not fixed length at offset 10 ,
是不是(?<=[0-9]+)这里面的匹配必须是固定的,这个问题怎么解决呢?