dot图转义

    public static String handle(String s) {
        s = s.replaceAll("sonar.","");
        int index = s.indexOf("@");
        if(index!=-1){
            s = s.substring(0,index);
        }
            s = s.replaceAll("org.eclipse.cdt.internal.core.dom.parser.cpp.","");
        return s.replaceAll("[{}|\\\\\\\"<> ]", "\\\\$0");
    }

你可能感兴趣的:(java,开发语言)