3 ms·
The problem is that outside of very trivial or temporary situations, regexes should be named and tested. Especially for scripts that tend to be written, deploye
by humanrebar 3y ago
The problem is that outside of very trivial or temporary situations, regexes should be named and tested. Especially for scripts that tend to be written, deployed indefinitely, and mostly ignored.
One you have a name and a design where you can test the boundaries of that regex without, say, downloading large files or rearranging the filesystem, you aren't really buying all that much by avoiding some extra library boilerplate.
But I'll admit that native support for regex comes in handy for throwaway scripts.