Java escape characters

Source: Internet
Author: User
Tags comparison table

Java escape characters
All escape characters and their meanings:

Escape characters Meaning ASCII value (decimal)
\ Bell (BEL) 007
\ B Return to BS to move the current position to the previous column. 008
\ F Change page (FF), move the current position to the beginning of the next page 012
\ N Line feed (LF), move the current position to the beginning of the next line 010
\ R Press enter (CR) to move the current position to the beginning of the line 013
\ T Horizontal tabulation (HT) (jump to the next TAB) 009
\ V Vertical tabulation (VT) 011
\\ Represents a backslash character ''\' 092
\' Represents a single quotation mark (apostrophes) character 039
\" Represents a double quotation mark character 034
\?
  
Represents a question mark
  
063
  
\ 0 NULL) 000
\ Ooo Any character from 1 to 3 octal digits Three octal nodes
\ Xhh Any character in hexadecimal notation between 1 and 2 Two hexadecimal
Note: Yes. slashes: "/" and backslash: "\" are not interchangeable here.Java escape character comparison table 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.