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