us phone validation regex code example
Example 1: valid phone number regex with country code
((00)?(\+)?\d{1,3})[-\s]+(\d{1,3})[-\s]+(\d{4,10})
Example 2: phone regex
^\s*(?:\+?(\d{1,3}))?[-. (]*(\d{3})[-. )]*(\d{3})[-. ]*(\d{4})(?: *x(\d+))?\s*$