regexp_replace weirdness amounts to a bug?

Поиск
Список
Период
Сортировка
От Erik Rijkers
Тема regexp_replace weirdness amounts to a bug?
Дата
Msg-id 8371a323-d44c-0790-c018-603753023140@xs4all.nl
обсуждение исходный текст
Ответы Re: regexp_replace weirdness amounts to a bug?  (Malthe <mborch@gmail.com>)
Re: regexp_replace weirdness amounts to a bug?  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Список pgsql-hackers
Hello,

The following surprised me enough to think it might be a bug:
(17devel)

select
    regexp_replace('Abc Def'
   , '([a-z]) ([A-Z])'
   , '\1 ' || lower('\2')  );

regexp_replace
----------------
  Abc Def
(1 row)

-- 'Abc Def' got
-- 'Abc def' expected

What do you think?

Thanks,

Erik Rijkers




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

Предыдущее
От: Fabien COELHO
Дата:
Сообщение: Re: pgbench - adding pl/pgsql versions of tests
Следующее
От: Malthe
Дата:
Сообщение: Re: regexp_replace weirdness amounts to a bug?