81,115
社区成员
发帖
与我相关
我的任务
分享

String s = "//@woailuo:heihei//@徐昕:[弱]//@李博:[弱]";
Pattern p = Pattern.compile("@(.+?):");
Matcher m = p.matcher(s);
while(m.find()){
System.out.println(m.group(1));
}
打印:
woailuo
徐昕
李博
然后把这个放到list里,返回给前台。