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