DEV Community

Discussion on: How do you feel about regex?

Collapse
 
mistval profile image
Randall

It's a great tool for solving certain types of problems that would be very hard to solve otherwise. I've seen some very arcane solutions for problems that could have been solved very simply with regex - because the author of the code didn't know how to use regex. Almost everyone learns about regex later than they should - I know I did.

Any non-trivial regex should be clearly commented, though. That's often missing.