/*Part G: getRegExString
Create a method called getRegExString that prompts the user to input a String that matches a RegEx pattern. Make sure that you bulletproof the input by using the hasNext methods, reading the trash, and clearing the pipe after reading the value (the newline fix).
- Pipe is a Scanner object that you created in main in the usual way i.e. in or console
- Prompt is the message to display as the prompt for the input.
- RegEx is the regex pattern in java String format to use for matching*/
//public static String getRegExString(Scanner pipe, String prompt, String regex)