Re: regexp_replace

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: regexp_replace
Дата
Msg-id CAKFQuwYBbLeOLmdA=AMjkBM02NdDzCwFyPijPys1bvayhSObxA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: regexp_replace  (Andy Colson <andy@squeakycode.net>)
Список pgsql-general
On Thu, Jan 14, 2016 at 1:27 PM, Andy Colson <andy@squeakycode.net> wrote:
On 1/14/2016 2:06 PM, David G. Johnston wrote:
select regexp_replace('71.09.6.01.3', '(\d)[.-](?=\d)', '\1\2', 'g');


​John already picked up on the fact that the "\2" in the replacement is pointless (neither helping nor hurting) since nothing was captured at that position.

David J.


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

Предыдущее
От: Andy Colson
Дата:
Сообщение: Re: regexp_replace
Следующее
От: "Williamson, Michael"
Дата:
Сообщение: Re: v9.1, DROP TRIGGER IF EXISTS behaving oddly