public double buildeDouble(String temp){
String[] zr = temp.split("[^0-9//.]+");
String temp1 = null;
for(int z=0;z<zr.length;z++){
if(zr[z].matches("[0-9//.]+")){
temp1 = zr[z];
}
}
if(null != temp1)
return new Double(temp1);
return 0;
}
我主要是不明白//.是什么意思?见过\\.,不知道//.的作用,另.是任意字符,我也知道。有谁能说一下//.的意思?