Telephone Number Validator: almost and need some suggestions

The intent of the challenge is to create one regex that tests all the phone numbers that the test tests for. It can be done with one regex. Look into that rather than the if else statement. I’m not saying it can’t be done with your approach but it is shorter and easier to read with one regex.