Re: Why this regexp matches?! - Mailing list pgsql-general

From Tom Lane
Subject Re: Why this regexp matches?!
Date
Msg-id 13913.1328387273@sss.pgh.pa.us
Whole thread Raw
In response to Re: Why this regexp matches?!  (hubert depesz lubaczewski <depesz@depesz.com>)
Responses Re: Why this regexp matches?!
List pgsql-general
hubert depesz lubaczewski <depesz@depesz.com> writes:
> On Sat, Feb 04, 2012 at 07:31:25PM +0100, Alban Hertroys wrote:
>> Limited? They're really not.

> Limited - because (for example) Pg regexps, are the only regexp flavour
> that I know that you can't have both greedy and non-greedy operators in
> the same expression.

Huh?  Sure you can.

The engine's rules for combining greedy and non-greedy behavior might be
a bit different from Perl's, but that doesn't make it "limited".  It
just means it has different idiosyncrasies from Perl's engine.  I do not
accept the proposition that Perl's regexps are perfect and everybody
else's are wrong to the extent that they act differently from Perl's.

As for the specific behavior at hand, it does look like a bug from here,
but I don't have time to poke at it right now.

            regards, tom lane

pgsql-general by date:

Previous
From: hubert depesz lubaczewski
Date:
Subject: Re: Why this regexp matches?!
Next
From: hubert depesz lubaczewski
Date:
Subject: Re: Why this regexp matches?!