String str=你的str串 List<String> list=new LinkedList<String>(); Pattern p=Pattern.compile(你的正则表达式X); Matcher m=p.matcher(str); while(m.find()){ list.add(m.group()); } 这个list就是你要的
51,410
社区成员
86,072
社区内容
加载中
试试用AI创作助手写篇文章吧