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