使用正则替换文案中所有的特殊字符为 空格+特殊字符+空格,
如以下文案中每个特殊字符的前后加上空格
"A 【tragedy】 of (statistics)in most schools, is how ;dull it’s made Tea chers spend hours wading through derivations equa”ti“ons and theorems and "
需要替换的字符有以下这些:
()
:
,
-
…
!
.
《 》
< >
–
?
""
;
/
[ ]
点击查看