3 ms·
No. Regexes are a hack. I don't write them every day, I write them when I need a hack to get around a problem there isn't a good solution for.
by MatthewPhillips 14y ago
No. Regexes are a hack. I don't write them every day, I write them when I need a hack to get around a problem there isn't a good solution for.
- esschul 14y agoWhy do you say regex's are hacks? Aren't they nice to use in order to search and replace text? It's really powerful!
- dr42 14y agoRegexs are not hacks. They are part of a programmers toolchest. Just because you write them when you cannot think of a better solution doesn't make them a hack. They are a legitimate solution for efficient text matching problems.