2 ms·
I don't have experience with parsers, so I cannot comment how easy/difficult it is compared to regex. Regex can indeed lead to issues [1] but so could any othe
by asicsp 7y ago
I don't have experience with parsers, so I cannot comment how easy/difficult it is compared to regex.
Regex can indeed lead to issues [1] but so could any other piece of code. So, I disagree that regex shouldn't be used in production. This article [2] by Jeff Atwood gives a balanced view of when to use regex and some nice tips.
[1] https://new.blog.cloudflare.com/details-of-the-cloudflare-outage-on-july-2-2019/ https://new.blog.cloudflare.com/details-of-the-cloudflare-ou...
[2] https://blog.codinghorror.com/regular-expressions-now-you-have-two-problems/ https://blog.codinghorror.com/regular-expressions-now-you-ha...