3 ms·
Wow, this is an interesting idea for a library, thanks @hk__2 for sharing! TLDR; frak transforms collections of strings into regular expressions for matching t
by jaytaylor 10y ago
Wow, this is an interesting idea for a library, thanks @hk__2 for sharing!
TLDR; frak transforms collections of strings into regular expressions for matching those strings. It is available as a command line utility and for the browser as a JavaScript library.
- sooheon 10y agoI think emacs has the equivalent built in: `(rx (or "foo" "bar" "baz" "quux"))` gives you: `;; => "\\(?:ba[rz]\\|foo\\|quux\\)"`