- From: <bugzilla@jessica.w3.org>
- Date: Sat, 30 Jan 2016 04:40:56 +0000
- To: public-qt-comments@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=29407
Abel Braaksma <abel.braaksma@xs4all.nl> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[QT3] analyze-string-008, |[QT3] analyze-string-008,
|nested grouping |analyzeString-017a, nested
| |grouping
--- Comment #1 from Abel Braaksma <abel.braaksma@xs4all.nl> ---
Same is true for analyzeString-017a: analyze-string("banana", "(b(x?))")
Currently expected is:
<fn:match>
<fn:group nr="1">b</fn:group>
<fn:group nr="2" />
</fn:match>
<fn:non-match>anana</fn:non-match>
But I believe the correct result ought to be:
<fn:match>
<fn:group nr="1">b<fn:group nr="2" /></fn:group>
</fn:match>
<fn:non-match>anana</fn:non-match>
I.e.: the groups are nested, so should be nested in the result. Otherwise there
would be no distinction with an regex such as "(b)(x?)" (which I believe would
result in the first result above).
--
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Saturday, 30 January 2016 04:41:13 UTC