0
是否存在preg_replace()
的正则表达式,它将替换字符串中的字符(如果它位于单/双引号和圆/方括号/大括号之间)。php preg替换容器内的字符
E.g.
$var = "(replace, here) not,here 'but, here' , [and, this too] , \"oh, escaped as well\", ";
echo preg_replace($pattern, ".", $var);
将返回:
(replace. here) not,here 'but. here' , [and. this too] , "oh. escaped as well",
我吸的正则表达式。所以任何帮助将不胜感激。
干杯。