用正则表达式替换数字
String height=css.get("height")==null?"":css.get("height").replaceAll("[^\\d\\-\\.]*","").trim();
String height_unit=css.get("height")==null?"":css.get("height").replaceAll("\\d+(,\\d{3})*","").trim();
用正则表达式替换数字
String height=css.get("height")==null?"":css.get("height").replaceAll("[^\\d\\-\\.]*","").trim();
String height_unit=css.get("height")==null?"":css.get("height").replaceAll("\\d+(,\\d{3})*","").trim();