regex

Small-script regex: `search`, `matches`, `capture` / `capture_all` with groups, `replace_on` and a lazy `split_on`, with a thread-local pattern cache.

loft install regex
use regex;
Guidegetting started with regex
Version0.5.0 — published 2026-10-14
CategoriesText
Requiresloft >=2026.10.0
CompatibilityAPI: no earlier release is a drop-in · stored data: drop-in for 0.2.1 and later
Download21 kB
Public API10 items, with their documentation
Dependenciesnone
Used byno other registry package — you would be the first
Loads itself forMatch?.group() · Match?.named() · text.search() · text.matches() · text.capture() · text.capture_all() · text.replace_on() · text.split_on() — these resolve with no use line
Sourceread it here — the libraries are written in loft
Repositoryhttps://github.com/loft-lang/loft-libs-core/tree/main/regex

A drop-in floor is the oldest release of this package the current one still replaces without a source change. Not declared means exactly that — the package has made no promise, which is the honest state for one published before the compatibility contract existed.

← All libraries