SyntaxFix
Write A Post
Hire A Developer
Questions
If you can use the Apache Commons library, then Commons-Lang StringUtils has a method called isAlphanumeric() that does what you're looking for.
StringUtils
isAlphanumeric()