Question

I found many links about this, but none of them did not work me. I used \p{Letter}, it allowed space and digits.

I want Unicode Regular Expression for person name. Only letters like English, Latin, Russian, Chine and other Europe countries etc. languages, which does not allow digits, space and specally symbols. Can anybody help me? I will use that in jquery validation engine and in c# code.

Was it helpful?

Solution

These are the W3C recommendations for dealing with personal names: http://www.w3.org/International/questions/qa-personal-names

I don't think you'll find regular expressions very useful for this. You would have to allow pretty much everything, except maybe strings that don't contain any letters at all.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top