62,628
社区成员
发帖
与我相关
我的任务
分享 public static void main(String[] args) {
String[] s = {"http://wapask.39.net/question/13152517.html", "https://wapask-mip.39.net/mip/question/13152517.html?sf_samp_hit=0"};
Matcher m = null;
for (String o : s) {
m = Pattern.compile(".*/(.*?\\.html).*?").matcher(o);
while (m.find()) {
System.out.println(m.group(1));
}
}
}