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