Readable Regular Expressions for JavaScript/TypeScript, Inspired by Emacs' rx
Summary
The article introduces a TypeScript DSL inspired by Emacs rx for constructing readable regular expressions in JavaScript/TypeScript. It walks through the core data structures, composition primitives (seq, or), character sets, anchors, and groups, and provides a complete RX/RegExp implementation with practical examples (semver, phone numbers, emails) and a cheat sheet to map Emacs rx forms to TS.