为什么80%的码农都做不了架构师?>>> 将String s="1{345}2";中的{345}替换为空; System.out.println(s.replaceAll("[{](.*)[}]", "")); 转载于:https://my.oschina.net/dh189/blog/51580