$content = ''; //你的数据$patt = '#(.*)#i';$result = array();preg_match_all($patt,$content,$result);/**这里$result[0] 就是 ZZ$result[1] 是,(\s+)代替的内容$result[2] 是,(.*)代替的内容*/
preg_match_all("/()/u", $str, $matches);