- \ N press enter (\ u000a)
- \ T horizontal tab (\ u0009)
- \ B space (\ u0008)
- \ R line feed (\ u000d)
- \ F form feed (\ u000c)
- \ 'Single quotes (\ u0027)
- \ "Double quotation marks (\ u0022)
- \ Backslash (\ u005c)
- \ DDD three-digit gossip
- \ Udddd four-digit hexadecimal
Point escape:. ==> u002e
Escape of dollar signs: $ ==> u0024
Escape of the multiplication Symbol: ^ ==> u005e
Escape from the left braces: {==> u007b
Escape from left square brackets: [==> u005b
Escape of left parentheses :( ==> u0028
Escape of vertical bars: |=> u007c
Escape of right parentheses: ==> u0029
Asterisk escape: * ==> u002a
Escape of the plus sign: + ==> u002b
Escape question mark :? ==> U003f
Escape the backslash: ==> u005c
Java
Code
- String str2 ="A $ B $ C";
- String STRs [] = str2.split ("$");
- For(String STR: STRs ){
- System. Out. println (STR );
- }
A, B, and C won't be typed. You need to turn to the role. For example:
Java code
- String str2 ="A $ B $ C";
- String STRs [] = str2.split ("\ U0024");
- For(String STR: STRs ){
- System. Out. println (STR );
- }