/ Published in: XML
for Brandeis Class
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<xsd:simpleType name="phoneNumber"> <xsd:restriction base="xsd:string"> <xsd:pattern value="(\d{1}[-|\s])?((\(\d{3}\)\s?)|(\d{3}-))?\d{3}-\d{4}"/> </xsd:restriction> </xsd:simpleType>