Is there a way to do regular expressions in Java? Something like this: if (char != [A-Za-z1-9]) /chris