octal-escape-sequence:
| \ octal-digit
|
| \ octal-digit octal-digit
|
| \ octal-digit octal-digit octal-digit
|
hexadecimal-escape-sequence:
| \x hexadecimal-digit
|
| hexadecimal-escape-sequence hexadecimal-digit
|
Description:
Octal escape sequences, specified in the form \ooo, consist of a backslash and one, two, or three octal characters. Hexadecimal escape sequences, specified in the form \xhhh, consist of the characters \x followed by a sequence of hexadecimal digits. Unlike octal escape constants, there is no limit on the number of hexadecimal digits in an escape sequence.
Octal escape sequences are terminated by the first character that is not an octal digit, or when three characters are seen.
For example:
och = '\076a'; // Sequence terminates at a
ch = '\233'; // Sequence terminates after 3 characters



