| 1 |
<html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 2 |
<title>Regular expressions 7. Octal and hexadecimal escapes</title> |
| 3 |
<style> |
| 4 |
td { padding-left: 5pt; padding-right: 5pt; } |
| 5 |
th { padding-left: 5pt; padding-right: 5pt; } |
| 6 |
code { white-space: pre-wrap; } |
| 7 |
dd { white-space: pre-wrap; } |
| 8 |
</style> |
| 9 |
</head><body bgcolor="#FFFFFF"> |
| 10 |
|
| 11 |
<table border=0 cellpadding=0 cellspacing=0><tr><td bgcolor="#CCCC00"><table border=4 cellpadding=9><tr><td align=middle bgcolor="#000000"><font face="Palatino,Times" size=6 color="#999900"><b> |
| 12 |
Regular expressions 7. Octal and hexadecimal escapes |
| 13 |
</b></font></table></table> |
| 14 |
<p>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. </p> |
| 15 |
<p>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. </p> |
| 16 |
<dl> |
| 17 |
<dd> Example: \053 and \X2B both specify the "+" character.</dd> |
| 18 |
</dl> |
| 19 |
<h3>Links to this page</h3> |
| 20 |
<ul> |
| 21 |
<li><a href="Regular_expressions.html">Regular expressions</a> |
| 22 |
<li><a href="Regular_expressions_8__Substitution_special_characters.html">Regular expressions 8. Substitution special characters</a> |
| 23 |
</ul> |
| 24 |
<hr> |
| 25 |
<address> |
| 26 |
<p>© djmw 20010709</p> |
| 27 |
</address> |
| 28 |
</body> |
| 29 |
</html> |