- 链接地址:https://blog.csdn.net/smile_68/article/details/110389725
- 链接标题:Java字符串去掉前面的0_replaceall为什么去掉了0-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:715
使用字符串的replaceAll()方法+正则表达式String str = "0000000152638382";String newStr = str.replaceAll("^(0+)", "");System.out.println(newStr);_replaceall为什么去掉了0
版权声明:本文发布于特牛网址导航 内容均来源于互联网 如有侵权联系删除