Preparing for system design interviews?  Try bugzed.com →

Type-Level RegExp

JSON →
library 0.1.17 ·javascript
verified Jun 17, 2026

Type-Level RegExp (current version 0.1.17) is a TypeScript library that implements a regular expression parser and matcher entirely at the type level, leveraging TypeScript's template literal types. It allows developers to define regex patterns as string literals and receive compile-time type-safe results when using `String.match()`, `String.matchAll()`, and `String.replace()`. This provides robust validation of regex syntax and strongly typed access to capture groups, significantly reducing runtime errors related to incorrect regex patterns or mismatched group access. The library is currently under active development ('Work In Progress'), implying an iterative release cadence focused on feature expansion and refinement. Its primary differentiator is the deep integration of regex parsing into the TypeScript type system, offering static analysis benefits not typically found in runtime-only regex solutions.

total hits 25
actors 5 distinct systems
last hit 12d ago AhrefsBot
GPTBot
4
ByteDance
3
Script
1
Humans
11

top countries 🇸🇬 Singapore · 🇺🇸 United States · 🇨🇦 Canada · VN · PH