http://blog.csdn.net/stewen_001/article/details/22871737
See a program
String t = "a| | b| | c| | D ";
string["temp = T.split ("\\|\\|"
System. out . println (Temp.length);
The main thing is: what does "\\|\\|" mean?
began a bit of a mask, and then a careful look to understand that the original is this:
\\ "\| In the escape is | \\||".
Deeper research:escape characters for Java
1. Eight binary escape sequence:\ + 1 To3 Guests5 number; Range' \000 ' ~ ' \377 ': null character
2.Unicode Escape Character:\u + four hexadecimal digits;0~65535 \u0000: null character
3. Special characters:3 x
\ ": Double quotation marks
\ ': Single quote
\ \: Backslash
4. Control characters: 5
\ ' Single quote character
\\ backslash character
\r carriage return
\n line
\f Go paper
\t horizontal tab
\b backspace
Point escape: ==> u002e
The escape of the dollar sign: $ ==> u0024
The escape of the symbol: ^ = = > u005e
Left curly brace escape: {==> u007b
Escape of opening parenthesis: [==> u005b
Escape of left parenthesis: Span lang= "en-us" > (escape of ==> u0028
Vertical bar: | ==> u007c
Escape of Right parenthesis: Asterisk: * ==> u002a
The escape of the plus sign: + ==> u002b
question mark escape: ==> u003f
Backslash escape: ==> u005c
So \\| It can actually be written as:\\u007C
Java Escape character \\|