I have this regex:
if (cadena.matches("^[a-zA-Z ]+$")) return true;
It takes A to Z both lowercase and uppercase. Also accepts spaces.
But this only works for English. For example, in Catalan we have the symbol "รง". We also have characters with 'รก', or 'ร ', etc.
Was there some kind of Google and I could not find a way to do this.
I found out that I can filter for UTF-8, but this will accept characters that are not actually letters.
How to implement this?
Reinherd
source share