Skip to content
diagrams.mbt
DocsArticlesGalleryAPIGitHub

Gallery / regex

Assertions and named capture

Family: regex. Status: Implemented.

A named capture, lookahead and negative assertion.

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

Preview

Assertions and named capture preview
Assertions and named capture preview (dark)

Source

regex-assertions.puml

text/plain

@startregex
title Version capture
(?=v)(?<version>v\d+(?:\.\d+){1,2})(?![\w.])
@endregex

Download source: regex-assertions.puml

Download SVG Download dark SVG Open offline player

diagrams.mbt · Diagramming for MoonBit.