Re: [DOCS] can't be both non-capturing and still capture

2017-07-03 Thread Tom Lane
s...@coolheads.com writes: > Here, the whole regexp is non-capturing, right, so how can the result be > reported as shown? No, the outer parens are non-capturing, but the ones inside them still are capturing parens. Perhaps it would clarify matters if you tried it with plain outer parens: =# SEL

[DOCS] can't be both non-capturing and still capture

2017-07-03 Thread srn
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:
SELECT regexp_matches('abc01234xyz', 
'(?:(.*?)(\d+)(.*)){1,1