50,504
社区成员
发帖
与我相关
我的任务
分享
String str="abcdabcdabcd";
int i=0;
String[] content=new String[100];
Pattern pattern=Pattern.compile("a(.*)d");
Matcher m=pattern.matcher(str);
while(m.find()){
content[i]=m.group(1);
i=i+1;
}