日期:2014-05-20 浏览次数:20645 次
public static void main(String[] args) { String str = "<DATA>sfasfsgdsgsgsgsgsg</DATA>"; Matcher m = Pattern.compile("(?i)<data>(.*)</data>").matcher(str); while (m.find()) { System.out.println(m.group(1)); } }