I have the following regular expression with which I validate "Compound Names", but it does not allow accents such as accents or "ñ" , I need to correct it
/^[a-zA-Z]+(\s*[a-zA-Z]*)*[a-zA-Z]+$/
I have the following regular expression with which I validate "Compound Names", but it does not allow accents such as accents or "ñ" , I need to correct it
/^[a-zA-Z]+(\s*[a-zA-Z]*)*[a-zA-Z]+$/
This should work
\u00f1 y \u00d1
are the equivalent for "ñ" and "Ñ", respectively in the example explainedEDITED: I had forgotten the accent marks, now it supports accent marks and others, such as umlauts