3 ms·
Ever? For any purpose whatsoever? That seems overly prescriptive.
by kbrowne 13y ago
Ever? For any purpose whatsoever? That seems overly prescriptive.
- alayne 13y agoSure, for scripts, adhoc analysis, command line hacking and whatnot, go ahead. Regexes should be seen more like a last resort than a good software engineering choice. They're a code smell. I have seen so many incorrect, slow regexes from people who don't know what they are doing that I have to recommend as a best practice that you don't use them unless you are going to study automata, read Friedl's book, the Dragon book, and study with Tibetan regex monks for years, and mentor everyone who has to maintain your code until you die.