java 替换字符串中的中括号

正确方式:
"[adbdesf]".replaceAll("\[", "").replaceAll("\]", "")

错误方式:
"[adbdesf]".replaceAll("[", "").replaceAll("]", "")

"[adbdesf]".replaceAll("[", "").replaceAll("]", "")
原文地址:https://www.cnblogs.com/liaojie970/p/5017417.html