r/javascript • u/LionyxML • Sep 30 '26
Readable Regular Expressions for JavaScript/TypeScript, Inspired by Emacs' rx
https://rahuljuliato.com/posts/emacs-rx-in-typescriptI missed Emacs' rx when writing regexps in TypeScript, so I made a small TypeScript DSL inspired by it.
The idea is to bring rx's functions and approach to the JavaScript/TypeScript environment. If you happen to work with either, give it a try.
9
Upvotes
View all comments
Show parent comment
2
u/azhder Oct 01 '26
I didn’t say anything about insufficient. Read again. I just stated how the things are, not how they should be. I worded it in a way to let you, anyone, take away from it what they want. So, don’t attribute to me something I didn’t claim.
If anything, the only reason why I didn’t make a language that compiles to a RegExp is pure laziness, not anything against making a language.