vue 正则匹配group组
//var ruleExpPattern= /( && )?(!)?(IN)?\((?<groupname>[a-zA-Z]+),'(?<groupvalue>(\w+,?)+)'\)/
var ruleExpPattern= /\((?<groupname>[a-zA-Z]+),'(?<groupvalue>(\w+,?)+)'\)/g let matchresult=null
let str='IN(TRANSMD,'2') && IN(INSROLE,'R') && IN(RCVINSCD,'00001344')'
while ((matchresult=ruleExpPattern.exec(str))!=null) {
str=str.replace(matchresult[0],"")
console.log(matchresult.groups["groupname"],matchresult.groups["groupvalue"])
}