Re: REGEXP_REPLACE woes

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: REGEXP_REPLACE woes
Дата
Msg-id 20080610134153.GB1944@winnie.fuhr.org
обсуждение исходный текст
Ответ на Re: REGEXP_REPLACE woes  ("Leif B. Kristensen" <leif@solumslekt.org>)
Ответы Re: REGEXP_REPLACE woes  (Michael Fuhr <mike@fuhr.org>)
Список pgsql-general
On Tue, Jun 10, 2008 at 02:59:53PM +0200, Leif B. Kristensen wrote:
> So far, so good. But look here:
>
> pgslekt=> select link_expand('[p=123|John Smith] and [p=456|Jane Doe]');
>                               link_expand
> -----------------------------------------------------------------------
>  <a href="./family.php?person=123">John Smith] and [p=456|Jane Doe</a>
> (1 row)
>
> Hey, I told it not to be greedy, didn't I?

Yes, but regexp_replace only replaces that part of the original
string that matches the regular expression -- the rest it leaves
alone.

--
Michael Fuhr

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

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: REGEXP_REPLACE woes
Следующее
От: "Leif B. Kristensen"
Дата:
Сообщение: Re: REGEXP_REPLACE woes