我正在使用宏在Word文档中工作,试图使用not!运算符仅在字符串没有逗号时才标识该字符串:
所以对于字符串-
while at Generic Laboratory, Generic Plant. Your medical...我希望只有当逗号不在那里时,它才能找到字符串,我一直这样写道:
(while at)(*[!,]*)(. Your medical)或者
(while at)(*)([!,])(*)(. Your medical)如果有逗号,则不排除字符串。我尝试使用char(44)来标识逗号,但没有成功。有没有人知道一种方法,如果字符串中有逗号,我可以防止它被选中?
关键是只有当字符串只是语句: while at Generic Plant时,才能捕获它。你的医疗..。因此我可以在替换字符串中插入单词the,如下所示:\1the \3\4等
发布于 2019-02-01 07:41:18
Find = (while at )([!,]@. Your medical)
Replace = \1the \2https://stackoverflow.com/questions/54465247
复制相似问题