W3C home > Mailing lists > Public > xmlschema-dev@w3.org > September 2000

Regular expressions

From: David Vázquez Guerrero <d_vazquez_g@yahoo.com>
Date: Thu, 14 Sep 2000 10:53:40 -0500 (CDT)
Message-ID: <20000914155340.15637.qmail@web1401.mail.yahoo.com>
To: xmlschema-dev@w3.org
I apologise for not having included the subject in my
previous message!)


Hi again

So far, I have used regular expresions only to
constraint values for strings. For example:

<!-- Accepts numbers from 1 to 119, excluding 2,3 and
10 -->
<simpleType name="simpleTrendCNCAddress1Type"
base="string">
	<pattern
value="1|[4-9]|1[1-9]|[2-9][0-9]|1[0-1][0-9]"/>
</simpleType>

As you can see, this regular expression restricts
numeric values.

Does anybody know if I can have the same result using
a numeric data type?


Many thanks,

David


_________________________________________________________
Do You Yahoo!?
Obtenga su dirección de correo-e gratis @yahoo.com
en http://correo.espanol.yahoo.com
Received on Thursday, 14 September 2000 11:53:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:18 GMT