正则表达式替换
用正则表达式替换数字
????? ????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();
发布时间: 2012-07-30 16:19:05 作者: rapoo
正则表达式替换
用正则表达式替换数字
????? ????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();