Understanding regex in Java: split(“\t”) vs split(“\\t”) – when do they both work, and when should they be used
When using “\t”, the escape sequence \t is replaced by Java with the character U+0009. When using “\\t”, the escape sequence \\ in \\t is replaced by Java with \, resulting in \t that is … Read more