日期:2014-05-20 浏览次数:20791 次
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));
}
}