Re: Why this regexp matches?!

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Why this regexp matches?!
Дата
Msg-id 13913.1328387273@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Why this regexp matches?!  (hubert depesz lubaczewski <depesz@depesz.com>)
Ответы Re: Why this regexp matches?!  (hubert depesz lubaczewski <depesz@depesz.com>)
Список 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 по дате отправления:

Предыдущее
От: hubert depesz lubaczewski
Дата:
Сообщение: Re: Why this regexp matches?!
Следующее
От: hubert depesz lubaczewski
Дата:
Сообщение: Re: Why this regexp matches?!