日期:2014-05-20 浏览次数:20716 次
String s="{aa=1,bb=2}"; List<String> list=new ArrayList(); Matcher m=Pattern.compile("\\w+(?==)").matcher(s); while(m.find()){ list.add(m.group()); } String[] sArr=list.toArray(new String[list.size()]);