4 ms·
FWIW there's also https://github.com/slevithan/regex https://github.com/slevithan/regex "JS regexes future. A template tag for readable, high-performance, nati
by DemocracyFTW2 1y ago
FWIW there's also https://github.com/slevithan/regex https://github.com/slevithan/regex "JS regexes future. A template tag for readable, high-performance, native JS regexes with extended syntax, context-aware interpolation, and always-on best practices". From the docs:
Highlights include support for insignificant whitespace and comments, atomic groups and possessive quantifiers (that can help you avoid ReDoS), subroutines and subroutine definition groups (that enable powerful subpattern composition), and context-aware interpolation of regexes, escaped strings, and partial patterns.