小唯快跑啊
PatternSyntaxException 是未检查异常,指示正则表达式模式中的语法错误。PatternSyntaxException 类提供了下面的一些方法,用于确定在什么地方发生了错误: public String getDescription():获得错误描述。 public int getIndex():获得错误索引。 public String getPattern():获得字符串形式的错误正则表达式。 public String getMessage():获得一个多行的字符串,包括语法错误和错误的索引、错误的正则表达式模式,以及模式内可视化的索引指示。