R regular expression match telephone numbers in the USA format code example Example: phone number regex ^(\+\d{1,2}\s)?\(?\d{3}\)?[\s.-]\d{3}[\s.-]\d{4}$