日期:2014-05-20 浏览次数:20694 次
String str="http://www.baidu.com/img/XXXXXX"; Pattern pattern=Pattern.compile("http://(.*?)/"); Matcher matcher=pattern.matcher(str); while (matcher.find()) { System.out.println(matcher.group(1)); }