added a new method to get the characters which don't adhere to a regex used in validation