正则表达式

编译正则表达式 String re = "\d+"; Pattern compile = Pattern.compile(re); Matcher matcher = compile.matcher("123123123213"); 提取字符串 // 一个括号内会被分为一个group String
posted @ 2021-05-29 15:30  小小记录本  阅读(36)  评论(0编辑  收藏  举报