txt = "aaaBcaaABC"
set regEx = new regexp
regEx.global = True
regEx.ignoreCase = True
regEx.pattern = "abc"
replaceTest = regEx.Replace(txt,"ABC")
msgbox replaceTest
VBS——正则表达式——将匹配到的字母进行大小写转换
最新推荐文章于 2022-11-17 13:39:42 发布
txt = "aaaBcaaABC"
set regEx = new regexp
regEx.global = True
regEx.ignoreCase = True
regEx.pattern = "abc"
replaceTest = regEx.Replace(txt,"ABC")
msgbox replaceTest