upvote
It's simple, unless you're given a specific broader context (like we have an enterprise customer data pruning system that needs to handle a broad range of corner cases) then you must not resort to overengineering this early in an interview.
reply
You have a problem, so you try to solve it with a regex. You now have two problems.
reply
And an extra import. also, it sounds like they where looking specifically for knowledge of built-in operators.
reply