The following is the result for the query "phone number"
Here is a regular expression that matches a phone number:
^[+]*[(]{0,1}[0-9]{1,3}[)]{0,1}[-\s./0-9]{8,14}$ This regular expression matches a phone number in any format, including international formats. It has the following parts:
^: Matches the beginning of the string. [+]*: Matches an optional plus sign (+). [(]{0,1}: Matches an optional opening parenthesis (). [0-9]{1,3}: Matches a sequence of one to three digits. [)]{0,1}: Matches an optional closing parenthesis ). [-\s./0-9]{8,14}: Matches a sequence of eight to fourteen digits, hyphens (-), spaces ( ), or periods (.). $: Matches the end of the string. For example, this regular expression would match the following phone numbers:
+1-800-555-1212 123-456-7890 001-987-654-3210 1-555-555-5555