Java doc says A character is considered to be a letter if its general category type, provided by Character.getType(ch), is any of the following:
UPPERCASE_LETTER - General category "Lu" in the Unicode specificationLOWERCASE_LETTER - General category "Ll" in the Unicode specificationTITLECASE_LETTER - General category "Lt" in the Unicode specification.MODIFIER_LETTER - General category "Lm" in the Unicode specificationOTHER_LETTER - General category "Lo" in the Unicode specification
It is a performance bottle neck to go through all the characters in a for loop to validate the string. Did any of you guys manage to convert Character.isLetter() to regex? If yes can you share it?
Thanks.