Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: restrict simpleType to word characters and spaces except digits restrict simpleType to word characters and spaces except digitsTo: NULL Date: 4/4/2008 9:55:00 AM Hi, I'm having an hard time to build a regular expression that: - Will accept words; - Will accept spaces; - But cannot accept digits; Examples: This is a game Ol=E1 Mundo M=F3dulo A An initial approach was: <xs:simpleType name=3D"nomeType"> <xs:restriction base=3D"xs:string"> <xs:maxLength value=3D"255" /> <xs:pattern value=3D"[\w\s]+" /> </xs:restriction> </xs:simpleType> But this will accept values like this: M=F3dulo 1234 I could use "[\w\s]+" [a-zA-Z\s] but i've to accept other letters from ISO-8859-15 like =E1 or =CD. The attempt: <xs:simpleType name=3D"nomeType"> <xs:restriction base=3D"xs:string"> <xs:maxLength value=3D"255" /> <xs:pattern value=3D"[\w\s]+" /> <xs:pattern value=3D"\D+" /> </xs:restriction> </xs:simpleType> does not work either. Thanks in advance, Anil Mamede | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
