MatchesXsUnsignedShort🔗
Check that
text
conforms to the pattern of an xs:unsignedShort
.
Code
unsignedShortRep = (
'(-0|\\+?0*[0-9]{1,5})'
)
pattern = (
f'^{unsignedShortRep}$'
)
return match(
pattern,
text
) is not None