更新时间:2023-02-22 22:42:59
应该使用以下正则表达式:
The following regular expression should do it:
$pattern = '@\(.*?\)@';
。*?是非贪婪的任何东西都匹配。
。*?
.*? is a non-greedy match of anything.
.*?
PHP - 使用正则表达式模式删除短代码和内容
preg_replace()模式可删除php中的括号和内容