MatchesXsHexBinary🔗
Check that
text
conforms to the pattern of an xs:hexBinary
.
Code
hexBinary = (
'([0-9a-fA-F]{2})*'
)
pattern = (
f'^{hexBinary}$'
)
return match(
pattern,
text
) is not None