Re: Why this regexp matches?!

Поиск
Список
Период
Сортировка
От Jasen Betts
Тема Re: Why this regexp matches?!
Дата
Msg-id jgodij$lp1$1@reversiblemaps.ath.cx
обсуждение исходный текст
Ответ на Why this regexp matches?!  (hubert depesz lubaczewski <depesz@depesz.com>)
Ответы Re: Why this regexp matches?!
Список pgsql-general
On 2012-02-04, hubert depesz lubaczewski <depesz@depesz.com> wrote:
> select 'depesz depeszx depesz' ~ E'^(.*)( \\1)+$';
>
> what's worse:
> $ select regexp_replace( 'depesz depeszx depesz', E'^(.*)( \\1)+$', E'\\1' );
>  regexp_replace
> ────────────────
>  depesz
> (1 row)
>
> I know that Pg regexps are limited, but even grep's regexps match this
> correctly:

whose grep?

Postgres is BSD licence and that means they can't use the latest and
greatest GPL libraries.

--
⚂⚃ 100% natural

В списке pgsql-general по дате отправления:

Предыдущее
От: Jasen Betts
Дата:
Сообщение: Re: Why extract( ... from timestamp ) is not immutable?
Следующее
От: Jasen Betts
Дата:
Сообщение: Re: Why extract( ... from timestamp ) is not immutable?