1 Pattern pa = Pattern.compile("table");
Matcher ma = pa.matcher();
int i=0;
while(ma.find()){
i++;
}
System.out.println(i);2 ^_^,哪上面的不久可以了,当i==2时System.out.println(ma.group());
Matcher ma = pa.matcher();
int i=0;
while(ma.find()){
i++;
}
System.out.println(i);2 ^_^,哪上面的不久可以了,当i==2时System.out.println(ma.group());
Matcher 不是有一个groutCount()是返回当前查找所获得的匹配组的数量。
我用m.groupCount()执行后总返回1呀