Can anyone point me to some code or tell me a simple way to validate a
UK postcode (or email address or another simple example) ?
I have the Schema set up already. Now I just want to write some
validation (in VB.Net or C#)code to trap for this error.
<xs:element name="PostCode">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern
value="([A-Z]{1,2}[0-9]{1,2}|[A-Z]{3}|[A-Z]{1,2}[0-9][A-Z])(
|-)[0-9][A-Z]{2}" />
</xs:restriction>
</xs:simpleType>
</xs:element>