can't be both non-capturing and still capture

From: srn(at)coolheads(dot)com
To: pgsql-docs(at)postgresql(dot)org
Subject: can't be both non-capturing and still capture
Date: 2017-07-03 20:47:55
Message-ID: 20170703204755.27952.9007@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/9.6/static/index.html
Description:

In postgresql-doc-9.5/html/functions-matching.html#POSIX-MATCHING-RULES:

<PRE
CLASS="SCREEN"
>SELECT regexp_matches('abc01234xyz', '(?:(.*?)(\d+)(.*)){1,1}');
<I
CLASS="LINEANNOTATION"
>Result: </I
><SAMP
CLASS="COMPUTEROUTPUT"
>{abc,01234,xyz}</SAMP
></PRE
>

Here, the whole regexp is non-capturing, right, so how can the result be
reported as shown?

The previous two warmup examples do not have the surrounding
non-capturing-group markup. Looks to me like that markup should not appear
here, either.

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Michael Paquier 2017-07-03 22:43:32 Re: Documentation still mentioning SSLv2 and SSLv3
Previous Message neil 2017-07-03 20:07:10 Confusing Trigger Docs.