MatchesIdShort🔗

Type: Pattern verification
Check that text is a valid short ID.

Code

pattern = (
    '^[a-zA-Z][a-zA-Z0-9_-]*[a-zA-Z0-9_]+$'
)
return match(
    pattern,
    text
) is not None