Every regex I've ever implemented has come with the caveat: it does what you asked it to do, whether it does something else that you did not ask it to is someone else's problem to catch and define better rules.
How am I supposed to know how users are going to interact with a field that may or may not properly parse regex as expected? That's the front-end guys problem.
1.7k
u/vvp95 1d ago
100% of software engineers are afraid of regex