With reference to below question - String.replaceAll single backslashes with double backslashes
I wrote a test program, and I found that the result is true in both
The first form \\t will be expanded to a tab char by the pattern class.
\\t
The second form \t will be expanded to a tab char by Java before it builds a pattern.
\t
In the end, you get a tab char either way.