特牛网址导航

Java字符串去掉前面的0_replaceall为什么去掉了0-CSDN博客

网友收藏
使用字符串的replaceAll()方法+正则表达式String str = "0000000152638382";String newStr = str.replaceAll("^(0+)", "");System.out.println(newStr);_replaceall为什么去掉了0