String replaceStr="--\\t--";
String str ="你\\t的";
str=str.replaceAll("\\t",replaceStr);
System.out.println(str);
str=str.replaceAll("--t--","\\\\t");
System.out.println(str);
\\\\t是替换成“hello\\tworld”
\\t是替换时找到\\t
\t是匹配“hello\tworld”