Using regex to match yes or no.