Using regular expressions, modify your hangman code to reject input that is
Not an alphabet (lower or uppercase)
Not a single character
Not your exit character (!)
Print out a generic message if the input does not fit these criteria. Something along the lines of "Your input must be a single character alphabet or '!' to exit").
Note:
This validation of input should happen for each input of the user, while the game is running
Invalid characters should be rejected and not be treated like a real try or attempt.
Create a method in the hangman class to handle this input validation
Using regular expressions, modify your hangman code to reject input that is
Print out a generic message if the input does not fit these criteria. Something along the lines of "Your input must be a single character alphabet or '!' to exit").
Note: