Y
Hacker News
new
|
ask
|
show
|
jobs
by
MatthewPhillips
5108 days 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.
2 comments
esschul
5108 days ago
Why do you say regex's are hacks? Aren't they nice to use in order to search and replace text? It's really powerful!
link
dr42
5108 days ago
Regexs 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.
link