I have the following if statement with a regular expression to check if an entry does not have lowercase and uppercase letters, however I need to include all foreign characters too like ü, ó etc. How could I include all these in my regex?
if (regsurname.match(/[^a-zA-Z]/g)) {
....
The main idea of it is to stop people from entering numbers or characters like *-/ in the surname field.
EDIT: I read that it can be done with this \p{L}
but how would I include that in my regex exactly?
Thanks!