VBA中采用正则表达式的四则运算
采用正则表达式的四则运算:在VBA环境中,如何使用正则表达式,将正则表达式应用到四则运算中的算是分解中。Dimr1AsRegExpDimm1AsMatchDimmc1AsMatchCollectionDimstrAsStringDimsstrAsStringSetr=NewRegExpSetr1=NewRegExpr.Global=Truer1.Global=Truer.Pattern="\w*\([^()]*\)"'不支持括号嵌套'p2="[\(\+\-\*\/\)]\w+"'带符号的变量或数值
下载地址
用户评论