java中使用正则规则 #str = 需要匹配的字符串#Pattern p = Pattern.compile(正则匹配规则);#Matcher m = p.matcher(str);#m.find();==是否匹配了,boolean值#m.group(1);$1#m.group(2);$2