regular expression for 10 digit phone number code example Example: regex phone number 10 digit ^(\+\d{1,2}\s)?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}$