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