Re:Interview with a Pornhub web developer (2019)
by kradroy on Tuesday July 28, 2020 @03:11PM
(#23979544)
This is exactly it. The nuances of regex patterns can be misconstrued. Obviously if the regex used for flow control cannot be sensibly translated to more traditional conditional statements, then they are permitted. Even in that case, the "simplest" regex was preferred.
So managing a bunch of hard-coded code paths via a switch instead of using a regex to pattern-match.
It's less future-proof, but even an entry-level dev can reason about a switch statement and update it as needed.