正则表达式轮换

正则表达式替换用正则表达式替换数字????? ????String heightcss.get(height)null?:css.get(heigh

正则表达式替换

用正则表达式替换数字

????? ????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();