我们正在使用 String 的 replaceAll 方法,我们不能在任何字符串中替换 { 。我们的例子:试过:"some { string".replaceAll("{", "other string");错误如下:java.util.regex.PatternSyntaxException:发生非法重复对任何想法持开放态度!也许有解决方法?!
添加回答
举报
0/150
提交
取消