62,628
社区成员
发帖
与我相关
我的任务
分享
String content = "a1001_20180101,B_20180201,2001_20180301,30C_20180401";
String regex = "(\\w*)_";
Pattern pattern = Pattern.compile(regex);
Matcher matcher = pattern.matcher(content);
while(matcher.find()){
System.out.println(matcher.group(1));
}