W3C home > Mailing lists > Public > public-qt-comments@w3.org > January 2016

[Bug 29407] [QT3] analyze-string-008, analyzeString-017a, nested grouping

From: <bugzilla@jessica.w3.org>
Date: Sat, 30 Jan 2016 04:40:56 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-29407-523-F9T4tjbXTC@http.www.w3.org/Bugs/Public/>
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

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