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