A
Anil Mamede
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á Mundo
Módulo A
An initial approach was:
<xs:simpleType name="nomeType">
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
<xs
attern value="[\w\s]+" />
</xs:restriction>
</xs:simpleType>
But this will accept values like this:
Módulo 1234
I could use "[\w\s]+" [a-zA-Z\s] but i've to accept other letters from
ISO-8859-15 like á or Í.
The attempt:
<xs:simpleType name="nomeType">
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
<xs
attern value="[\w\s]+" />
<xs
attern value="\D+" />
</xs:restriction>
</xs:simpleType>
does not work either.
Thanks in advance,
Anil Mamede
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á Mundo
Módulo A
An initial approach was:
<xs:simpleType name="nomeType">
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
<xs
</xs:restriction>
</xs:simpleType>
But this will accept values like this:
Módulo 1234
I could use "[\w\s]+" [a-zA-Z\s] but i've to accept other letters from
ISO-8859-15 like á or Í.
The attempt:
<xs:simpleType name="nomeType">
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
<xs
<xs
</xs:restriction>
</xs:simpleType>
does not work either.
Thanks in advance,
Anil Mamede