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;
| Guide | getting started with regex |
|---|---|
| Version | 0.5.0 — published 2026-10-14 |
| Categories | Text |
| Requires | loft >=2026.10.0 |
| Compatibility | API: no earlier release is a drop-in · stored data: drop-in for 0.2.1 and later |
| Download | 21 kB |
| Public API | 10 items, with their documentation |
| Dependencies | none |
| Used by | no other registry package — you would be the first |
| Loads itself for | Match?.group() · Match?.named() · text.search() · text.matches() · text.capture() · text.capture_all() · text.replace_on() · text.split_on() — these resolve with no use line |
| Source | read it here — the libraries are written in loft |
| Repository | https://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.