正则表达式只保留数字

str=str.replaceAll("[^0-9]", "");

posted @ 2019-08-14 16:16  不打鱼光晒网  阅读(10225)  评论(2)    收藏  举报