日期:2014-05-20 浏览次数:20716 次
String s = {CA_EXTSUM}/CA01-CALWIN-{yyyyMMdd}(02|03|04).txt
String str = "{CA_EXTSUM}/CA01-CALWIN-{yyyyMMdd}(02
------解决方案--------------------
03
------解决方案--------------------
04).txt";
Pattern p = Pattern.compile("\\{(.*?)\\}/");
Matcher matcher = p.matcher(str); //str就是上面的那个网页内容
while (matcher.find()) {
System.out.println(matcher.group(1));
}