62,634
社区成员




str = "br['35']='266,A 111,B 222'";
str = str.replaceAll(".*?\\['(\\d+)'\\].*","$1");
System.out.println(str);
String str = "br['35']='266,A 111,B 222'";
Pattern p = Pattern.compile("(?:br\\[')(\\d+)(?:'\\])");
Matcher m = p.matcher(str);
while(m.find()){
System.out.print(m.group(1));
};