
$str = '"=?gb2312?xPrU2rPM0PLUscGqus+/qreizfgod3d3LnB1ZG4uY29tKbXE1cq6xdLRv6o=?= =?gb2312?B?zag=?="简游消拦知';
preg_match_all('磨稿/(?==\?)[^\1]+?\?=/', $str, $matches);
print_r($matches);
结果:
Array
(
[0] => Array
(
[0] => =?gb2312?xPrU2rPM0PLUscGqus+/qreizfgod3d3LnB1ZG4uY29tKbXE1cq6xdLRv6o=?=
[1] => =?gb2312?B?zag=?=
)
)
$str = "=?gb2312?xPrU2rPM0PLUscGqus+/渣型雹租咐qreizfgod3d3LnB1ZG4uY29tKbXE1cq6xdLRv6o=?= =?gb2312?B?zag=?=";
preg_match_all('\如帆=\?.+\?\=', $str, $arr);
print_r($arr);
(?:=\?).*?(?:\?=)
这样写