21,891
社区成员
发帖
与我相关
我的任务
分享if(preg_match('/news_show\.php\?id=(\w+)&news=[ny]/is', $str)){
echo "匹配";
}if(preg_match('/news_show\.php\?id=(\w+)&news=[ny]/is', $str)){
echo "True";
}
if(preg_match('/news_show\.php\?id=(\w+)&news=n/is', $str))
{
echo 'Y';
}