Compose-regexp.js Build readable and maintainable RegExps. ReDOS begone
Compose-regexp.js Build readable and maintainable RegExps. ReDOS begone
This is an old lib I just rejuvenated, adding support for Unicode RegExps, properly handling back-references, and taking advantage of these to create helpers that turn things that are usually too impractical to use into usable techniques. It lets you write anything you'd write with normal RegExps, but with a more readable syntax, and it lets you compose sub-expressions into larger patterns. It also provides helpers like: - `atomic()` that prevents the engine from backtracking into what you passed as argument. No more ReDOS. - `bound()` works like `\b` but for arbitrary character sets. E.g. `bound(/[_\p{L}\p{Number}]/u)` is a Unicode-aware `\b` - Set operations on character classes: `charSet.intersection(/\p{Lowercase}/u, /\p{Script=Greek}/u)` will only match lower case greek letters I hope you'll find it useful!
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Correct prediction on native model
Similar products
Readable expressjs errors
Build SPA with Alpine.js
Prompt-Compose.js Use Axioms and Compositions to Build Modular Prompts
WeExpire – Notes readable only after your death
ParseHumanDate.js A robust library to parse human readable dates
Human Readable Magazine Is on Kickstarter
Human Readable Intervals for Node.js
Declaratively compose, render and export SDF geometries using js
Build Vue.js apps on Sqlite
Mber, very fast Ember.js build system without broccoli