PHP正则表达式去除百度知道文章底部版权信息
$pattern = '/该问题可能已经失效.*知道协议/s'; $replacement = ''; $article = preg_replace($pattern, $replacement, $article);
原文地址: https://www.cveoy.top/t/topic/qFeU 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
$pattern = '/该问题可能已经失效.*知道协议/s'; $replacement = ''; $article = preg_replace($pattern, $replacement, $article);
原文地址: https://www.cveoy.top/t/topic/qFeU 著作权归作者所有。请勿转载和采集!