Re: regexp_replace() [noindex] thing

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: regexp_replace() [noindex] thing
Дата
Msg-id 8321.1222360500@sss.pgh.pa.us
обсуждение исходный текст
Ответ на regexp_replace() [noindex] thing  (Marcus Engene <mengpg2@engene.se>)
Ответы Re: regexp_replace() [noindex] thing  (Marcus Engene <mengpg2@engene.se>)
Список pgsql-general
Marcus Engene <mengpg2@engene.se> writes:
> I would like to have a function like the above that returns "innan klas"
> for this data. I would have expected it to as I use the non greedy version.

regression=# select
    regexp_replace
('innan[noindex]apa[/noindex]klas[noindex]banan[/noindex]',
                    '\\[noindex\\].*?\\[/noindex\\]',
                    ' ', 'g');
 regexp_replace
----------------
 innan klas
(1 row)


            regards, tom lane

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

Предыдущее
От: Reg Me Please
Дата:
Сообщение: Counting rows in a PL/PgSQL CURSOR without fetching?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: The planner hates me.