Android 高逼格截取字符串
发布日期:2021-06-23 19:02:43 浏览次数:11 分类:技术文章

本文共 319 字,大约阅读时间需要 1 分钟。

转载请注明出处

ruanjianjiagou@163.com

待截取的字符串String str1 = "32"截取完的字符串String trueStr = ""; 以上字符串够复杂了吧我们需要截取1232 这个字符串校验字符串空和异常处理自己做,直接上干货
Pattern p = Pattern.compile("mdeditor/(.*)'>");            Matcher m = p.matcher(errorListingId);            while (m.find()) {                trueStr = m.group(1);            }

感觉逼格很高。。。。

转载地址:https://blog.csdn.net/u014513456/article/details/53728662 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:Spring Boot 2.x 集成 Thymeleaf 快速入门、静态资源映射规则
下一篇:Thymeleaf 模板引擎简介 与 Spring Boot 整合入门

发表评论

最新留言

逛到本站,mark一下
[***.202.152.39]2024年04月26日 04时08分04秒