当引号之间没有空格时,我想删除字符串中的引号。
下面是一个示例:
"foobar" should be foobar
"foo bar" should be "foo bar"
我使用的是php和preg_replace()
提前谢谢。
发布于 2011-06-26 05:05:33
preg_replace('/"([a-z0-9]+)"/iU','$1',$string);
https://stackoverflow.com/questions/6480509
相似问题