MatchesIdShort🔗
Check that
text
is a valid short ID.
Code
pattern = (
'^[a-zA-Z][a-zA-Z0-9_]+$'
)
return match(
pattern,
text
) is not None
text
is a valid short ID.
pattern = (
'^[a-zA-Z][a-zA-Z0-9_]+$'
)
return match(
pattern,
text
) is not None