Regular Expression Template Tag in TypeScript
I liked this gist enough that I made it a full-blown npm package. Check it out here.
After having used regular expression escape functions for years, it just crossed my mind that this might be way easier to achieve with a tagged template literal.
This is how to use this gist:
import rx from 'https://unpkg.com/@loilo/rx/dist/rx.mjs'