Match – A pattern matching language that replaces regex
Show HN: Match – A pattern matching language that replaces regex
Operating in show hn launch, Match – A pattern matching language that replaces regex operates.
Profile
I built Match, a pattern matching language designed to replace regex. Instead of cryptic escape sequences, you describe patterns in plain English.Example — matching an email address:email: username then "@" then domainusername: one or more of (letter, digit, ".", "_", "-")domain: one or more of (letter, digit, "-") then "." then between 2 and 6 lettersKey differences from regex:- Human-readable grammar syntax - Full parse trees with named extractions - No backtracking, no ReDoS by design - Composable grammar modules (use "module" (rule1, rule2)) - Zero dependencies, ~15KBAvailable on npm (@hollowsolve/match). Docs, playground, and examples on the site.GitHub: https://github.com/hollowsolve/M
Its activity falls under show hn launch; the profile below is assembled from public directory data.
Its current recorded stage is Show HN launch.
| Sector | Show HN launch |
|---|---|
| Stage | Show HN launch |
Website: www.matchlang.com
Browse related
Create a free account