I looked for a solution online, but I didn't find any.
I want to validate input string and check if it contains only ALLOWED characters.
My problem is, that I have "special" alphabet which contains "ěščřžýáí".
For normal English alphabet I can use regex like this A-Za-z
.
But what to use for quick check in my language?
My language contains following chars:
String ALLOWED_CHARS = "AÁBCČDĎEÉĚFGHChIÍJKLMNŇOÓPQRŘSŠTŤUÚŮVWXYÝZŽaábcčdďeéěfghchiíjklmnňoópqrřsštťuúůvwxyýzž";
Thank you for your advice!