Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: RegEx not right in my XmlSchema [Thread Next] Re: RegEx not right in my XmlSchemaTo: NULL Date: 10/2/2007 2:05:00 AM On 1 Oct, 14:01, billr <bi...@discussions.microsoft.com> wrote: > > The solution appears to be ... defining the content element as follows: > > <xs:simpleType name="CDATAContentElementType"> > <xs:restriction base="xs:string"> > <xs:pattern value="\s*(\d*|\w*|\W*|\s*|.*|>*)*\s*" /> > </xs:restriction> > </xs:simpleType> Looking at your pattern, by including \w*|\W* (i.e. anything that is a word character or anything that isn't a word character), then I think your pattern will match anything, so it's probably not providing you any validation beyond xs:string. My test of the pattern seemed to say the pattern was correct. If trying to match <