更加简洁:
String in = "Item(s): [item1.test],[item2.qa],[item3.production]";Pattern p = Pattern.compile("\[(.*?)\]");Matcher m = p.matcher(in);while(m.find()) { System.out.println(m.group(1));}
欢迎分享,转载请注明来源:内存溢出
更加简洁:
String in = "Item(s): [item1.test],[item2.qa],[item3.production]";Pattern p = Pattern.compile("\[(.*?)\]");Matcher m = p.matcher(in);while(m.find()) { System.out.println(m.group(1));}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)