phone number (P1248)
Jump to navigation
Jump to search
telephone number in standard format (RFC3966), without 'tel:' prefix
- tel:
- telephone number
- landline number
- mobile number
- VOIP number
- toll-free number
- freephone number
Language | Label | Description | Also known as |
---|---|---|---|
English | phone number |
telephone number in standard format (RFC3966), without 'tel:' prefix |
|
Data type
String
Statements
2 references
+1-877-386-3649
0 references
(?:(?:(?:\+|00|011)[\.\/\-\ \t]*([17]|2(?:[07]|[1-689]\d)|3(?:[0-4679]|[578]\d)|4(?:[013-9]|2\d)|5(?:[1-8]|[09]\d)|6(?:[0-6]|[789]\d)|8(?:[1246]|[035789]\d)|9(?:[0-58]|[679]\d))[\.\/\-\ \t]*|([17])[\.\/\-\ ])?(?:\((\d{1,6})\)[\.\/\-\ \t]*)?(?:(\d{1,6})[\.\/\-\ ])?(?:(\d{1,6})[\.\/\-\ ])?(?:(\d{1,6})[\.\/\-\ ])?(?:(\d{1,6})[\.\/\-\ ])?(\d{0,10}?)(\d{1,4}+)(?:[\.\/\-;\ \t]*e?xt?[\.\/\-=\ \t]*(\d{1,14}))?)?
detect country codes, detect optional area codes in parentheses, extract all significant groups of digits, enforcing a split on the last group for its last 4 digits, detect and extract extension (English)
this regexp also parses non-international numbers (without explicit country code) and is not suitable for URI (English)
1 reference
use RFC3966 format - e.g. +1-202-456-1414 https://github.com/googlei18n/libphonenumber or one of its ports is convenient to do automated validation and formatting (English)
0 references
使用RFC3966格式,例如+1-202-456-1414 https://github.com/googlei18n/libphonenumber或其移植可方便自动化检验与格式化 (Simplified Chinese)
0 references
specify only one number in value; add another property for each needed number, and specify their usage in a qualifier (English)
0 references
tel:$1
0 references
^(?:(?:(?:\+|00|011)[\.\/\-\ \t]*([17]|2(?:[07]|[1-689]\d)|3(?:[0-4679]|[578]\d)|4(?:[013-9]|2\d)|5(?:[1-8]|[09]\d)|6(?:[0-6]|[789]\d)|8(?:[1246]|[035789]\d)|9(?:[0-58]|[679]\d))[\.\/\-\ \t]*|([17])[\.\/\-\ ])?(?:\((\d{1,6})\)[\.\/\-\ \t]*)?(?:(\d{1,6})[\.\/\-\ ])?(?:(\d{1,6})[\.\/\-\ ])?(?:(\d{1,6})[\.\/\-\ ])?(?:(\d{1,6})[\.\/\-\ ])?(\d{0,10}?)(\d{1,4}+)(?:[\.\/\-;\ \t]*e?xt?[\.\/\-=\ \t]*(\d{1,14}))?)?$
1 reference
0 references
0 references
tel:$1
0 references
tel
0 references
Key:contact:phone
0 references
Key:phone
0 references
^(?:tel|callto)?:(\+\d+)(?:-|\s)(\d+)(?:-|\s)(\d+)(?:-|\s)(\d+)(?:-|\s)(\d+)
\1\2\3\4\5\6
strips out hypens and spaces (English)
0 references