if ([^A-Z_,]) { # bad user input } else { # good user input }