Matches a 0x-prefixed hex literal.
/^0x[0-9a-fA-F]+$/
Standard hex notation in C, C++, Java, JS, Python, Rust, Go. Useful for parsing memory addresses, color codes (with leading 0x instead of #), and binary protocols.
Matches a 0x-prefixed hexadecimal literal.