Re: Replacing characters in a string

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Replacing characters in a string
Дата
Msg-id 5360.1284561963@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Replacing characters in a string  (Sergey Konoplev <gray.ru@gmail.com>)
Список pgsql-general
Sergey Konoplev <gray.ru@gmail.com> writes:
> Just specify 'g' as the flags parameter (the 4th one). It means 'globally'.

> SELECT regexp_replace('xaxx', 'x', 'e', 'g');

> There are more of this flags described here:
> http://www.postgresql.org/docs/8.4/interactive/functions-matching.html#POSIX-EMBEDDED-OPTIONS-TABLE

> p.s. The question is for hackers - BTW I did not find 'g' in this
> table, is it a docs bug?

No.  That table is referenced for numerous cases where 'g' is not an
allowed flag.  Instead, 'g' is documented in-line in the description
of regexp_replace.

            regards, tom lane

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

Предыдущее
От: Mike Broers
Дата:
Сообщение: 8.3.8 question about backup/recovery behavior
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: Getting FATAL: terminating connection due to administrator command