如何用查找替换的方法删除中括号?
如何用查找替换的方法删除中括号? 0分 [] 用\[\] \[*\] 似乎都不行啊? 如附件: c
Sub Del() Dim Str$, oj As Object Str = ThisDocument.Content Set oj = CreateObject("ScriptControl"): oj.Language = "JScript" oj.Eval "function reg(str){return place(/(\[|\])/g,'')}" ThisDocument.Content = g(Str) End Sub
用替代命令(把“[”用空来替代), 在你的附件中),我试试没有问题,完全可以删除“[”。 不能用\[\] \[*\] 。 如果不成的话,恐怕是你的OFFICE软件有问题。
单击替换,上面输入一栏输入【】,下面一栏什么也不输,最后确定就可以了!!