java中的正则匹配。解决了很多问题!
String r = ("正则表达式");
Pattern p = Pattern.compile(r);
Matcher m = p.matcher(s);
while (m.find()) {
System.out.print(m.group(1));
}
String r = ("正则表达式");
Pattern p = Pattern.compile(r);
Matcher m = p.matcher(s);
while (m.find()) {
System.out.print(m.group(1));
}
