Exception in thread "main" java.lang.IllegalArgumentException: Illegal group reference
at java.util.regex.Matcher.appendReplacement(Matcher.java:857)
at java.util.regex.Matcher.replaceAll(Matcher.java:955)
at java.lang.String.replaceAll(String.java:2223)
这个是因为要替换的值含有“$”符号,处理一下
value = java.util.regex.Matcher.quoteReplacement(value);
- replaceAll reference Illegal 方法 groupreplaceall reference illegal方法 collections replaceall元素 方法 invalidkeyexception security illegal方法 窗体reference方法object replaceall undefined reference方法string illegal character multibyte position illegal invalidkeyexception security illegal问题 collations illegal mix of