I need to write a regular expression that should allow standard characters [a-zA-Z0-9] plus one space between each word, the umlauts [äöüÄÖÜ], a dot (.) and a hyphen (-) and no other special characters.
For Example :
Following should be allowed:
Dr. Aaryan Joshi
Phill Rozer MSc.
Ajay Verma5
Rajan-Verma MSc.
And following should not be allowed:
Ajay Verma
Dr. Ajay. Verma.
Test Name.-.Name2
Try this (in JavaScript, to match your comment above)