|
|
|
|
|
by dougmwne
1678 days ago
|
|
I think regex is absolutely terrible garbage. It’s very powerful, I do appreciate not having to write complex conditional statements, and it’s great that it’s available is so many languages and applications. But it’s just a bad tool, terribly unreadable, easy to introduce bugs, with lots of trial and error. It has too much brevity and would be much better if it were longer but more human readable. I’m sure there are other string search paradigms that are far better but relatively unknown. |
|
But then you're just memorizing things like 'start_of_line' instead of '^'. Perhaps easier to read, but no easier to write.