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