Posted By

jellyfishtree on 10/25/10


Tagged

xsd


Versions (?)

US Phone Number for W3C Schema (including toll free)


 / Published in: XML
 

for Brandeis Class

  1. <xsd:simpleType name="phoneNumber">
  2. <xsd:restriction base="xsd:string">
  3. <xsd:pattern value="(\d{1}[-|\s])?((\(\d{3}\)\s?)|(\d{3}-))?\d{3}-\d{4}"/>
  4. </xsd:restriction>
  5. </xsd:simpleType>

Report this snippet  

You need to login to post a comment.