Regular expressions 7. Octal and hexadecimal escapes

An octal number can be represented by the octal escape "\0" and maximally three digits from the digit class [0-7]. The octal number should not exceed \0377.

A hexadecimal number can be represented by the octal escape "\x" or "\X"and maximally two characters from the class [0-9A-F]. The maximum hexadecimal number should not exceed \xFF.

  Example: \053 and \X2B both specify the "+" character.

### Links to this page

- Regular expressions
- Regular expressions 8. Substitution special characters