使用str.split("[",15)时,出现Exception in thread "main" java.util.regex.PatternSyntaxException: Unclosed character class near index 0 [ ^的问题 解决办法为在[加上\\转义 str.split("\\[",15) 相关文章: 2021-09-29 2021-05-18 2022-12-23 2022-12-23 2021-10-06 2021-12-24 2022-12-23 2022-12-23