I try to validate a name field, and for this field I like to allow the end user to add anything like Merianos Nikos
, Μέριανος Νίκος
(greek), or characters from any other language in the same form.
The form is first letter capital, rest letters of the word lower, and at least two words.
Currectly I have this regex /^([A-Z][a-z]*((\s)))+[A-Z][a-z]*$/
that works perfectly with english, but not with greeks and perhaps with other languages.
Finally, I'd like to validate another field with at least on word, with the frist letter capital, but this field can also contains characters after the word.
For the moment I use the followign regex /^[\s\w\.\-_]+$/
that works, but again I have problem with greek and other languages.