62,614
社区成员
发帖
与我相关
我的任务
分享
String content = "<a>1</a><b>2</b><c>3</c><a>11</a><b>22</b><c>33</c><a>111</a><b>222</b><c>333</c>";
Pattern test_ptn = Pattern.compile("<a>.*?</c>");
Matcher m1 = test_ptn.matcher(content);
while (m1.find()) {
System.out.println("text=" + m1.group(0));
}