扫码关注官方订阅号
[quote]3333[/quote]匹配quote,然后把之间的内容都提取出来用php~
走同样的路,发现不同的人生
只要quote中间部分的话
$matches = []; $re = "/\\[quote\\](\\S*?)\\[\\/quote\\]/"; $str = "[quote]3333[/quote]\n"; preg_match($re, $str, $matches); print_r($matches);
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
只要quote中间部分的话