W3C home > Mailing lists > Public > public-qt-comments@w3.org > November 2011

[Bug 14994] [QT3] analyzeString-012, analyzeString-018

From: <bugzilla@jessica.w3.org>
Date: Tue, 29 Nov 2011 18:14:00 +0000
To: public-qt-comments@w3.org
Message-Id: <E1RVSBs-0005jx-4q@jessica.w3.org>

Michael Kay <mike@saxonica.com> changed:

           What    |Removed                     |Added
                 CC|                            |mike@saxonica.com

--- Comment #1 from Michael Kay <mike@saxonica.com> 2011-11-29 18:13:59 UTC ---
I believe the results are correct given the way the spec is currently written.
Under fn:analyze-string, it states:

For each capturing subexpression there will be at most one corresponding
fn:group element in each fn:match element in the result.

and 5.6.1 in defining capturing groups says:

If a sub-expression matches more than one substring (because it is within a
construct that allows repetition), then only the last substring that it matched
will be captured.

It would be nice to mark up all instances of the captured group, but it could
cause some compatibility problems for replace(), and I suspect it could be
difficult to implement with some off-the-shelf regex libraries.

Configure bugmail: http://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, 29 November 2011 18:14:02 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:37 UTC