记录使用过的正则表达式来提高对正则的熟练度
/**
* 匹配$..$之间的数字
* $123$dfhjka4465$90$fad ----> 123,90
*/
private static String matchData(String str){
String rs="";
Pattern p = Pattern.compile("(\\$)(\\d+)(\\$)");
Matcher m = p.matcher(str);
while(m.find()){
rs += m.group(2) + ",";
}
return rs.substring(0,rs.length()-1);
}