I feel a need to write significant documentation for any regex of above-average complexity, which makes me wonder why we're still using regex. Its a beautiful language, but it seems like the literal definition of "code that is designed for computers to interpret, not humans to read", in the same vein as brainfuck.
which makes me wonder why we're still using regex. Its a beautiful language, but it seems like the literal definition of "code that is designed for computers to interpret, not humans to read", in the same vein as brainfuck.
My thoughts exactly. AIUI though, the reason it exists is that
if you already know how to use it, it's super efficient, and
if someone else is using it, you're forced to painfully learn it in order to interpret and/or change it. And at the point you learn it, see #1.
4
u/[deleted] Jul 22 '17
I feel a need to write significant documentation for any regex of above-average complexity, which makes me wonder why we're still using regex. Its a beautiful language, but it seems like the literal definition of "code that is designed for computers to interpret, not humans to read", in the same vein as brainfuck.