- From: <bugzilla@jessica.w3.org>
- Date: Tue, 17 Jan 2012 13:21:07 +0000
- To: public-qt-comments@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=15545
--- Comment #2 from Tim Mills <tim@cbcl.co.uk> 2012-01-17 13:21:06 UTC ---
Test re00976 still remains a problem.
(every $s in tokenize('22a22z', ',') satisfies matches($s,
'^(?:(\d*){2,}?a\1z)$
')) and (every $s in tokenize('22a22', ',') satisfies not(matches($s,
'^(?:(\d*)
{2,}?a\1z)$')))
Here, (\d*){2,}? causes two passes of matching \d*. The first matches '22',
the second matches '', hence the matching fails.
For what it's worth, my interpretation of the specification is that \d* must
match the longest possible substring, inferred from the text:
''Without the " ? ", the regular expression matches the longest possible
substring.''
--
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Tuesday, 17 January 2012 13:21:13 UTC