I am trying to come up with a regex that checks to make sure the phone number is in the correct format (xxx)xxx-xxxx and that the phone number doesn’t start with 0 or 1.
GOAL
(199)912-0348 (✘) ERROR
(299)912-0348 (✔️) CORRECT
(021)231-1238 (✘) ERROR
(821)231-1238 (✔️) CORRECT