This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 4117 - Regex patterns using multiple quantifiers
Summary: Regex patterns using multiple quantifiers
Status: RESOLVED FIXED
Alias: None
Product: XML Schema Test Suite
Classification: Unclassified
Component: Microsoft tests (show other bugs)
Version: 2006-11-06
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Henry S. Thompson
QA Contact: XML Schema Test Suite mailing list
URL:
Whiteboard: metadata updated 2010-01-26
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-31 19:19 UTC by Michael Kay
Modified: 2010-01-26 12:33 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2006-12-31 19:19:01 UTC
In the Microsoft regex tests, test RegexTest_178 includes a schema with the pattern

value='(foo)(\c?*)(bar)'

This is invalid because \c is followed by two quantifiers. But the metadata describes the schema as valid.
Comment 1 Michael Kay 2006-12-31 19:25:21 UTC
A similar problem affects RegexTest_294 and RegexTest_295, which use patterns such as

value='([0-9]+?)([\w]+?)'

Similarly:

RegexTest_299 to RegexTest_317

Comment 2 Michael Kay 2007-01-01 11:36:41 UTC
Also affects 

   <test group="RegexTest_521" name="RegexTest_521"/>
   <test group="RegexTest_648" name="RegexTest_648"/>
   <test group="RegexTest_717" name="RegexTest_717"/>
   <test group="RegexTest_718" name="RegexTest_718"/>
   <test group="RegexTest_719" name="RegexTest_719"/>
   <test group="RegexTest_724" name="RegexTest_724"/>
   <test group="RegexTest_725" name="RegexTest_725"/>
   <test group="RegexTest_726" name="RegexTest_726"/>
   <test group="RegexTest_727" name="RegexTest_727"/>
   <test group="RegexTest_728" name="RegexTest_728"/>
   <test group="RegexTest_729" name="RegexTest_729"/>
   <test group="RegexTest_730" name="RegexTest_730"/>
   <test group="RegexTest_731" name="RegexTest_731"/>
   <test group="RegexTest_732" name="RegexTest_732"/>
   <test group="RegexTest_733" name="RegexTest_733"/>
   <test group="RegexTest_743" name="RegexTest_743"/>
   <test group="RegexTest_781" name="RegexTest_781"/>
   <test group="RegexTest_782" name="RegexTest_782"/>
   <test group="RegexTest_783" name="RegexTest_783"/>
   <test group="RegexTest_790" name="RegexTest_790"/>
   <test group="RegexTest_1132" name="RegexTest_1132"/>
   <test group="RegexTest_1201" name="RegexTest_1201"/>
   <test group="RegexTest_1202" name="RegexTest_1202"/>
   <test group="RegexTest_1203" name="RegexTest_1203"/>
   <test group="RegexTest_1208" name="RegexTest_1208"/>
   <test group="RegexTest_1209" name="RegexTest_1209"/>
   <test group="RegexTest_1210" name="RegexTest_1210"/>
   <test group="RegexTest_1211" name="RegexTest_1211"/>
   <test group="RegexTest_1212" name="RegexTest_1212"/>
   <test group="RegexTest_1213" name="RegexTest_1213"/>
   <test group="RegexTest_1214" name="RegexTest_1214"/>
   <test group="RegexTest_1215" name="RegexTest_1215"/>
   <test group="RegexTest_1216" name="RegexTest_1216"/>
   <test group="RegexTest_1217" name="RegexTest_1217"/>
   <test group="RegexTest_1227" name="RegexTest_1227"/>
   <test group="RegexTest_1265" name="RegexTest_1265"/>
   <test group="RegexTest_1266" name="RegexTest_1266"/>
   <test group="RegexTest_1267" name="RegexTest_1267"/>
   <test group="RegexTest_1274" name="RegexTest_1274"/>
Comment 3 Henry S. Thompson 2010-01-26 12:33:11 UTC
HST checked all the patterns, confirmed that they do all have double exponents