MatchesHexLiteral🔗

Type: Pattern verification
Check that text is a valid hexadecimal literal of the query language.
A hexadecimal literal is prefixed with 16#, e.g. , 16#1F.
text🔗
Text to be checked
Return🔗
True if the text conforms to the pattern

Code

pattern = "^16#[0-9A-F]+$"

return match(pattern, text) is not None