作者:。 | 来源:互联网 | 2018-05-18 22:03
[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);