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