re: Do we need Regex? VIEW POST


If you're dealing with .split(), you're dealing with regular expressions. That isn't an escape.

Yes, regular expressions can get big and complex. In my language of choice, you can add comments within your regular expressions. One hand, that's a strong testament to their power and usefulness, but on the other hand, heavy comment on their unreadability.

So, developers should learn to write regular expressions. They should learn to write readable and comprehendible regular expressions. And they should know alternatives that might serve the problem and the next developer (which might be Future Them) better.

code of conduct - report abuse