String s="[121212[121212121[21212]]]";
System.out.println(s.replaceAll("[",""));
                   为什么会出错,我用了转义字符还是不出效果。