Regular Expressions - The Horrors of Validation

    There was a simple task - to make a registration form and check it for correct input. But my boss is pedantic and constantly invents such tests on which my validation pours :-) I successfully overcame the phone, email, etc. And now the worst thing is checking the name and surname. A simple rule like ^ [a-zA-Z '' - '\ s] $ categorically does not suit him - you also need letters with umlauts and other “tails”, several kinds of apostrophes ... I’ve been completely tortured! I am the only programmer in the company and I deal with 2 sites at once - I support the old one and write a new one during breaks ... I will be glad to any help.

    Also popular now: