Skip to content
diagrams.mbt
DocsArticlesGalleryAPIGitHub

Gallery / regex

Alternatives and repetition

Family: regex. Status: Implemented.

Nested alternatives and optional repeated suffixes.

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

Preview

Alternatives and repetition preview
Alternatives and repetition preview (dark)

Source

regex-alternatives.puml

text/plain

@startregex
title Colour tags
(?:red|green|blue)(?:-(?:light|dark))?(?:,[a-z]+)*
@endregex

Download source: regex-alternatives.puml

Download SVG Download dark SVG Open offline player

diagrams.mbt · Diagramming for MoonBit.