MatchesHexLiteral🔗
Check that
text is a valid hexadecimal literal of the query language.
A hexadecimal literal is prefixed with
16#,
e.g.
, 16#1F.
Code
pattern = "^16#[0-9A-F]+$"
return match(pattern, text) is not None