Android 使用replaceAll() 替换“+” 或 "*"报java.util.regex.PatternSyntaxException
源代码String s = newText.toString();s = s.replaceAll("+", "\n +");s = s.replaceAll("-", "\n - ");s = s.replaceAll("*", "\n * ");s = s.replaceAll("/", "\n / ");运行时,出现异常,具体信息如下:
原创
2018-04-10 14:37:59 ·
1779 阅读 ·
0 评论