Showing:

Annotations
Diagrams
Facets
Source
Used by
Simple Type diggs:PhoneNumberStringType
Namespace http://diggsml.org/schema-dev
Annotations
A string value pattern restricted to accept US or International phone
numbers with some flexibility in formatting, such as: +1 555 123 4567 +442071234567
(555) 123-4567 555.123.4567 5551234567 +33 1 23 45 67 89
Diagram
Diagram
Type restriction of string
Facets
pattern (\+[0-9]( )?)?([0-9]( |-|\.|)){6,14}[0-9]|(\([0-9]{3}\)[-. ]?|[0-9]{3}[-. ])[0-9]{3}[-. ]?[0-9]{4}
Used by
Complex Type diggs:PhoneType
Source
<simpleType name="PhoneNumberStringType">
  <annotation>
    <documentation>A string value pattern restricted to accept US or International phone numbers with some flexibility in formatting, such as: +1 555 123 4567 +442071234567 (555) 123-4567 555.123.4567 5551234567 +33 1 23 45 67 89</documentation>
  </annotation>
  <restriction base="string">
    <pattern value="(\+[0-9]( )?)?([0-9]( |-|\.|)){6,14}[0-9]|(\([0-9]{3}\)[-. ]?|[0-9]{3}[-. ])[0-9]{3}[-. ]?[0-9]{4} "/>
  </restriction>
</simpleType>