您的位置: 首页 > 文章 > java.util.regex.PatternSyntaxException: Unclosed counted closure near index 14 [0-9a-zA-Z]{1, 20}报错 java.util.regex.PatternSyntaxException: Unclosed counted closure near index 14 [0-9a-zA-Z]{1, 20}报错 分类: 文章 • 2024-12-10 15:31:22 服务器报错 原因在于{1, 20}之间有一个空格,格式不规范,还是正则表达式不怎么懂。 之前报相似的什么near index .. \\w{1, 20}也是这点的问题。大括号的问题不改还是会报这相同的错。