MatchesXsBoolean🔗

Type: Pattern verification
Check that text conforms to the pattern of an xs:boolean.
text🔗
Text to be checked
Return🔗
True if the text conforms to the pattern

Code

pattern = (
    '^(true|false|1|0)$'
)
return match(
    pattern,
    text
) is not None