21,886
社区成员
发帖
与我相关
我的任务
分享
<?php
header('content-type:text/html;charset=utf-8');
//$res = preg_match("/^([\.-\w]+)\/([\.-\w]+);\s(\S)*$/i", 'ext/plain; charset=utf-8');
$res = preg_match("/^([\.-\w]+)\/([\.-\w]+)(.*)$/i", "ext/plain; charset=utf-8");
if($res){
echo "匹配!";
}else{
echo "匹配失败!";
}
?>
echo preg_match("/^([\.-\w]+)\/([\.-\w]+)(.*)$/i", "ext/plain; charset=utf-8"); //1
没有问题!估计是其他地方的问题