日期:2014-05-20 浏览次数:20784 次
String str = "[ID:86, 用户名:goudezong, 密码:123456, 用户类型:普通用户,]";
        Pattern p = Pattern.compile(":([^,]+),");
        Matcher m = p.matcher(str);
        while(m.find()){
            System.out.println(m.group(1));
        }