String strType ="type:int(0,数字)";
Pattern ptnType = Pattern.compile("(type)(:)(STRING|INTERGER|COLOR)(\\(*)(\\d*)(,*)(.*)(\\)*)");
  Matcher mchType =  ptnType.matcher(strType);
   if(mchType.matches())
   {
     Type = mchType.group(7).toString();
     System.out.println(Type);
     System.out.println("yes");
   }
   else
   {
     System.out.println("Not match");
   }
我的问题是当输出Type 的时候应该输出 "数字"的,可是程序中输出的是不是 "数字)",把后面的括好也输出来了,要想不输出该括号,请问正则表达式应该如何修改?
请指教!!!