Which regular expression can I use to match (allow) any kind of letter from any language
I need to match any letter including any diacritics (e.g. á, ü, ñ, etc.) and exlude any kind of symbol (math symbols, currency signs, dingbats, box-drawing characters, etc.) and punctuation characters.
I'm using asp.net MVC 2 with .net 4. I've tried this annotaion in my view model:
[RegularExpression(@"\p{L}*", ...
and this one:
[RegularExpression(@"\p{L}\p{M}*", ...
but client side validation does not work.
UPDATE: Thank you for all your answers, your sugestions work but only for .net and the problem here is that it also uses the regex for client side validation with javascript (sorry if this was not clear enough). I had to go with:
[^0-9_\|°¬!#\$%/\()\?¡¿+{}[]:.\,;@ª^*<>=&]*
which is very ugly and does not cover all scenarios but is the closest thing to what I need.