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