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