DEV Community

Discussion on: Regex..why can’t you just be normal? 🤯

Collapse
 
nickmaris profile image
nickmaris

Terminal and programming languages have some form of regex already, whereas antlr is something you have to install and you still need comments anyway:

github.com/antlr/grammars-v4/blob/...

Regex can be written in multiple lines with comments, clear commit messages and tests.

Collapse
 
eliasgroll profile image
Elias Groll

Sure, nothing bad with regex for small things like matching an email, version number or similar.

Just not the best IDEA to treat it as a real parser :)