Skip to content
diagrams.mbt
DocsArticlesGalleryAPIGitHub

Gallery / regex

Identifier validation

Family: regex. Status: Implemented.

Anchors and a bounded repeated character class.

Scope: Regex syntax and structural exploration only. Match evidence requires an external engine.

Preview

Identifier validation preview
Identifier validation preview (dark)

Source

regex-identifier.puml

text/plain

@startregex
title Identifier
^[A-Za-z_][A-Za-z0-9_]{0,31}$
@endregex

Download source: regex-identifier.puml

Download SVG Download dark SVG Open offline player

diagrams.mbt · Diagramming for MoonBit.