Disponible
amalgame-regex
POSIX ERE — Test / Match / Replace.
Vue d'ensemble
Expressions régulières POSIX ERE via regex.h de la libc. Pas de PCRE — la syntaxe POSIX couvre 95 % des besoins et reste prévisible. API Test, Match, Replace.
Caractéristiques
- ✓Syntaxe POSIX ERE (groupes, alternance, quantifieurs)
- ✓
Test(pattern, s)— boolean - ✓
Match(pattern, s)— captures - ✓
Replace(pattern, s, replacement) - ✓Compilation cachée par pattern
Exemple
Exemple minimal d'utilisation — recopiable tel quel après l'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")
En bref
- Licence : Apache-2.0
- Installation :
amc package add regex - Code source : amalgame-lang/amalgame-regex
- Index officiel : amalgame-lang/packages-index