Re: Regular expressions in procs

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: Regular expressions in procs
Дата
Msg-id AFCCBB403D7E7A4581E48F20AF3E5DB2035FB95C@EXADV1.host.magwien.gv.at
обсуждение исходный текст
Ответ на Regular expressions in procs  (Steve Manes <smanes@magpie.com>)
Список pgsql-general
Steve Manes wrote:
> I apologize if I'm having a rookie brain block, but is there a way to
> massage a string inside a proc to, for instance, strip it of all
> non-alpha characters using a regular expression?

SELECT regexp_replace(E'--> text\\\0120815_12 <--', '[^[:alpha:]]', '',
'g');
 regexp_replace
----------------
 text
(1 row)

Yours,
Laurenz Albe

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

Предыдущее
От: "Manso Gomez, Ramon"
Дата:
Сообщение: Re: [SQL] setof or array as input parameter to postgresql 8.2 functions
Следующее
От: "Pavel Stehule"
Дата:
Сообщение: Re: inner join problem with temporary tables