To match a string of any length (including the empty string) that is comprised exclusively of lower-case ASCII letters : pattern « XML Schema « XML Tutorial
<xs:pattern value="[a-z]*" />
Below is an example of element content that matches the above pattern:
<example>qwertyuiop</example>
Describing structured numeric strings like US Social Security Numbers (SSNs):
<xs:pattern value="\d{3}-\d{2}-\d{4}" />
Allow only the ten ASCII digits, using this character class expression
<xs:pattern value="[0-9]{3}-[0-9]{2}-[0-9]{4}" />