I want to check if a string only consists of consonants, ideally using a regular expression. I've thought of checking only for vowels, however this would mean that all other characters wouldn't be checked. I've tried this, but it doesn't work.
if ( exampleString.matches("[QWRTYPSDFGHJKLZXCVBNM]") )
{
return true;
}
Any suggestions?