Y
Hacker News
new
|
ask
|
show
|
jobs
by
esschul
5108 days ago
I use sublime text for this. Considering how many regexes I write a day, I actually need a text editor that has this support. Don't you ? :)
1 comments
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.
link
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