4 ms·
I do actually somewhat agree here. If one doesn't know what they are doing, it is very easy to do regular expressions incorrectly. That said, regex is sometime
by rallison 13y ago
I do actually somewhat agree here. If one doesn't know what they are doing, it is very easy to do regular expressions incorrectly.
That said, regex is sometimes necessary, so it is important for developers to be competent in this realm. In my opinion, ideally, junior developers would start with using them in non-production environments to become familiar, then go from there. It is also important to be able to distinguish which problems should be solved by regular expressions, and which shouldn't. A good mentor here can be great.