Re: [GENERAL] Non-capturing expressions

2014-10-26 Thread Francisco Olarte
Hi Thom: On Sat, Oct 25, 2014 at 11:55 AM, Thom Brown wrote: > Ah, I knew I missed something: > > # SELECT regexp_matches('postgres','(?:g)(r)'); > ...snip, snip... Yes. It's one fo the things I strongly dislike of some of the semantics of postgres ( and others ) regular engine functions. Their

Re: [GENERAL] Non-capturing expressions

2014-10-25 Thread Thom Brown
On 25 October 2014 11:49, Francisco Olarte wrote: > Hi Thom: > > On Sat, Oct 25, 2014 at 11:24 AM, Thom Brown wrote: > >> 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

[GENERAL] Non-capturing expressions

2014-10-25 Thread Thom Brown
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 though