Non-capturing expressions - Mailing list pgsql-general

From Thom Brown
Subject Non-capturing expressions
Date
Msg-id CAA-aLv5jhbhqO7cAVoLei0cSMF15t9+GJGF9k1GB8dyzVEFyAA@mail.gmail.com
Whole thread Raw
List pgsql-general
Hi all,

It must be that I haven't had enough caffeine today, but I can't figure out why the following expression captures the non-capturing part of the text:

# SELECT regexp_matches('postgres','(?:g)r');
 regexp_matches 
----------------
 {gr}
(1 row)

I'm expecting '{r}' in the output as I thought this would use ARE mode by default.

Thom

pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Osx stopping to install
Next
From: Francisco Olarte
Date:
Subject: Re: Emulating flexible regex replace