Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - restrict simpleType to word characters and spaces except digits [Thread Next] Re: restrict simpleType to word characters and spaces except digitsTo: NULL Date: 4/7/2008 12:06:00 AM Anil Mamede (anil.mamede@g...) wrote: : Hi, : I'm having an hard time to build a regular expression that: : - Will accept words; : - Will accept spaces; : - But cannot accept digits; What is a word? I guess that any alphanumeric is a word. Therefore a number is a word. So you need a word that has at least one character. In perl speak (untested)) /(\w*[a-zA-Z]\w*)|(\s+)/ $0.10 | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
