Available
amalgame-regex
POSIX ERE — Test / Match / Replace.
Overview
POSIX ERE regular expressions via libc's regex.h. No PCRE — POSIX syntax covers 95% of needs and stays predictable. Test, Match, Replace API.
Features
- ✓POSIX ERE syntax (groups, alternation, quantifiers)
- ✓
Test(pattern, s)— boolean - ✓
Match(pattern, s)— captures - ✓
Replace(pattern, s, replacement) - ✓Per-pattern compilation cache
Example
Minimal usage example — copy-paste runnable after install.
amc package add regex
if Regex.Test("^[a-z]+@", email) {
Console.WriteLine("looks like email")
}
let caps = Regex.Match("(\\d{4})-(\\d{2})-(\\d{2})", "2026-05-24")
At a glance
- License: Apache-2.0
- Install:
amc package add regex - Source: amalgame-lang/amalgame-regex
- Official index: amalgame-lang/packages-index