2 ms·
"Why regex still exists?" Is there an alternative that is clearly superior?
by tyingq 7y ago
"Why regex still exists?"
Is there an alternative that is clearly superior?
- samatman 7y agoYour mileage may vary, but to my taste, the lpeg flavor of Parsing Expression Grammars is clearly superior. It uses operator overloading to build patterns from component parts. I don't think anything can replace the terseness of regex for command line use, or vim searching, cases like that. But for a program, give me lpeg every time.