Javascript – How can i make my regex only accept a closing parentheses if it already matched an opening one
I'm trying to make a regex that will only accept phone numbers in the listed formats. However if I end the first three-digit group with a closing parentheses without an opening one at the start, the test will come back…