pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: srn@coolheads.com
To: pgsql-docs@postgresql.org
Subject: can't be both non-capturing and still capture
Date: Mon, 03 Jul 2017 20:47:55 +0000
Message-ID: <20170703204755.27952.9007@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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.

-- 
Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs


view thread (2+ messages)  latest in thread

Message-ID: <20170703204755.27952.9007@wrigleys.postgresql.org>
Permalink:  ../20170703204755.27952.9007@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20170703204755.27952.9007@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: srn@coolheads.com
  Subject: Re: can't be both non-capturing and still capture
  In-Reply-To: <20170703204755.27952.9007@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox