US Phone Number for W3C Schema (including toll free)

/ Published in: XML
Save to your folder(s)

for Brandeis Class

Copy this code and paste it in your HTML
  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


RSS Icon Subscribe to comments

You need to login to post a comment.