What's about ws-characters like blank, tab, linefeed?
What about interpunctation, like dot, comma, semicolon?
What about internationalisation: äüÖ´e`e^e¢?
If you mean only A-Z and a-z, you may use patternmatching:
Code:
if (Pattern.matches ("[A-Za-z]+", str))
// or
if (Pattern.matches ("\p{Alpha}", str))
So - since it would not be fine to ask for an asterix, i don't ask for one.
Don't the users recognize asterixes as formularized 'thank you'? Don't they read the FAQs and nettiquettes?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.