There’s a lot of use cases where regex makes a lot of sense: complex log parsing, determining if a value entered is a valid phone number or email, syntax highlighting, data validation in ML preprocessing, etc. A lot of languages also come with certain features that allow regex to be more efficient than dumb string matching, such as the ability to pre-compile patterns and the flexibility of being able to choose between deterministic and non-deterministic finite automata, should you need efficiency for one use case and flexibility for another. It really depends on what you’re designing and how it’s going to be used, of course.
Use of regex in production code is a sign of incompetence.
deleted by creator
He’s a troll. He said earlier today that the holocaust wasn’t bad because “not all the jews died”
He’s just trying to pick a fight
Removed by mod
There’s a lot of use cases where regex makes a lot of sense: complex log parsing, determining if a value entered is a valid phone number or email, syntax highlighting, data validation in ML preprocessing, etc. A lot of languages also come with certain features that allow regex to be more efficient than dumb string matching, such as the ability to pre-compile patterns and the flexibility of being able to choose between deterministic and non-deterministic finite automata, should you need efficiency for one use case and flexibility for another. It really depends on what you’re designing and how it’s going to be used, of course.
deleted by creator
Perfect pair of words for every solution that involves a regex.
deleted by creator
Removed by mod
deleted by creator
deleted by creator
deleted by creator
He’s taunting you because I told him you’re a troll and what you said about the holocaust not being bad. You don’t see that?