W3C home > Mailing lists > Public > xmlschema-dev@w3.org > October 2001

Is <pattern value="(.)+\.(gif|jpg|jpeg|bmp)"/> allowed?

From: Ross Thompson <rthompson@contivo.com>
Date: Wed, 17 Oct 2001 10:51:10 -0700
Message-ID: <15309.50446.361650.6598@localhost.localdomain>
To: Stanley Guan <Stanley.Guan@oracle.com>
Cc: xmlschema-dev@w3.org
Stanley Guan writes:
 > Hi,
 > 
 > Please see the following discussions for details.  But, is the
 > following regular expression allowed?
 >     <pattern value="(.)+\.(gif|jpg|jpeg|bmp)"/>

Yes it's allowed.  It could be expressed slightly more simply as

    <pattern value=".+\.(gif|jpg|jpeg|bmp)"/>

which is exactly equivalent.

- Ross

---
Withough 'g-o-d', 'good' would be 'o'	-- unknown
Received on Wednesday, 17 October 2001 13:51:22 GMT

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