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

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 UTC