Hexadecimal Numbers
The following regular expression can be used for matching hexadecimal numbers (c-style):
Expression:\b0[xX][0-9a-fA-F]+\b
Description:
Matches a hexadecimal (C-style) number.
Test Matches:
0x1 0xa 0x12345678 0xabcdefab 12345678 abcdefab