输入banner图图片脚本导航/分类

求个正则表达式

[quote]3333[/quote]
匹配quote,然后把之间的内容都提取出来
用php~

回复内容:

[quote]3333[/quote]
匹配quote,然后把之间的内容都提取出来
用php~

只要quote中间部分的话

$matches = [];
$re = "/\\[quote\\](\\S*?)\\[\\/quote\\]/"; 
$str = "[quote]3333[/quote]\n"; 
 
preg_match($re, $str, $matches);

print_r($matches);