Home /Modules/regex/SYMBOLS.md

SYMBOLS.md

regex/natural/SYMBOLS.md · 47 line(s) · markdown

SLeeLa Regex Natural Form — Symbols

Version: 1.1.0-dev

Natural Form is the portable, user-facing regex language for SLeeLa. This core vocabulary is finite and normative.

Atoms

FormMeaning
any / ·one character
digit / #one decimal digit
letter / @one letter
space / _one whitespace character
quoted textliteral text
[abc]one character from a set
[^abc]one character outside a set

Quantity

FormMeaning
one / =exactly once
optional / ?zero or one
some / +one or more
many / *zero or more
{n}exactly n
{n,m}n through m

Grouping and logic

FormMeaning
(...)capture group
<name: ...>named capture
(?:...)non-capturing group
| / oralternative

Anchors

FormMeaning
begin / ^beginning of input
end / $end of input

Unknown words MUST be rejected. Engine-specific constructs are extensions, not hidden additions to the core language.