3 ms·
It seems like the argument against regexes is that they can get really complex and unreadable. For something as simple as that url, isn't it easier to just use
by dlau1 13y ago
It seems like the argument against regexes is that they can get really complex and unreadable. For something as simple as that url, isn't it easier to just use a regex?
Seems like in the 'unreadable' regex case, you'll have a boatload of verbose function calls to construct it.
- krainboltgreene 13y agoLibrary owner here. A huge draw for me to make this library was composability, not avoiding regex syntax. I want to share patterns without having to do much.