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