//用正则表达式完成替换计算 //检验 if(Common.GetMatchStr(this.sumitem,@"\w+([+\-*/]\w+)*").Length!=sumitem.Length) return -1; string op=Common.GetMatchStr(sumitem,@"^\w+"); double ret=Cvt(op); while(op.Length !=sumitem.Length ) // 暂时不支持运算符的优先级和括号。 相关文章: