您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

php中正则无法匹配内容

2024/12/18 3:26:38发布13次查看
'; $output=preg_replace(/[\t\n\r]+/,,$output);$partern='/看过%5d+) class=climg alt=([^]+)>/';preg_match_all($partern,$output,$result);var_dump($result); ?>这样为什么匹配不到内容?
回复内容: 登录后复制
'; $output=preg_replace(/[\t\n\r]+/,,$output);$partern='/看过%5d+) class=climg alt=([^]+)>/';preg_match_all($partern,$output,$result);var_dump($result); ?>这样为什么匹配不到内容?
$partern 结尾多了
改为:$partern='/看过%5d+) class=climg alt=([^]+)>/';ps:不建议这样用正则
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product