I have to validate an input, and the easiest way I have at the moment is through a single regexp.
I want to check on all characters that could be in a name, so special characters like ü should be allowed, like in Schüssler. But digits shouldn’t be allowed, otherwise I would have just used \w.
So I tried to match on all word characters excluding the digits and _, but I can’t get this to work.
So can someone show me how to make this work (if it’s possible), or give me another solution that doesn’t involve mentioning all possible special characters that are allowed?
This regex will match/allow everything but the things within the
[^].