【发布时间】:2015-09-25 10:41:41
【问题描述】:
谁能用一个有效数据参数的例子解释一下这个模式的含义。
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:pattern value="[A-Z]{4}\d{2}-\d{4}"/>
</xsd:restriction>
</xsd:simpleType>
【问题讨论】:
-
4 个大写字符后跟 2 位数字,然后是连字符,然后是另外 4 位数字