Yes.
Regular Expression (Delimit with quotes) |
|
String (Delimit with quotes) |
|
To specify a character using the hexadecimal or octal code for the character, use one of the following.
Escape Code | Matches the character that has |
---|---|
\0n | octal value 0n (0 <= n <=7) |
\0nn | octal value 0nn (0 <= n <=7) |
\0mnn | octal value 0mnn (0 <= m <=3, 0< = n <=7) |
\xhh | hex value 0xhh ( 0 <= h <= F ) |
\uhhhh | hex value 0xhhhh |
For example, \0101
matches capital 'A'
since the octal code for that character is octal 101.
Usually you would just use the regular expression A
for this.
But to match strings that contain unicode characters, use the above.
Characters may be described using two or four hex digits.
The hex digits are 0, 1, 2, ..., 9, A, B, ... E, F.
The digits above nine can be upper or lower case.
For example, capital 'O' matches \x4F
or \u004F
or
\x4f
or
\u004f
The ascii code for 'A' is \x41 (usually written 0x41). What does the following expression match?
\x41\x42\x43