Re: BUG #4044: Incorrect RegExp substring Output - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #4044: Incorrect RegExp substring Output
Date
Msg-id 10502.1206027032@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #4044: Incorrect RegExp substring Output  ("Rui Martins" <Rui.Martins@PDMFC.com>)
List pgsql-bugs
"Rui Martins" <Rui.Martins@PDMFC.com> writes:
> But the sub-expression did "match" !

No, the sub-expression "(something)" did not match.  What did match
is the larger expression "(something)?".  You seem to be failing
to recognize that these are two different things.  If you put the
capturing parentheses around the larger expression then you will
get the result you want.

            regards, tom lane

pgsql-bugs by date:

Previous
From: "Rui Martins"
Date:
Subject: Re: BUG #4044: Incorrect RegExp substring Output
Next
From: "Eugen Konkov"
Date:
Subject: BUG #4047: case preserve for columns