Re: regexp replace?

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: regexp replace?
Дата
Msg-id 20040506222123.GD32667@dcc.uchile.cl
обсуждение исходный текст
Ответ на regexp replace?  (CSN <cool_screen_name90001@yahoo.com>)
Список pgsql-general
On Thu, May 06, 2004 at 01:59:16PM -0700, CSN wrote:

> Basically remove all characters that aren't
> [A-Za-z0-9], -, or ., and replace all spaces with
> hyphens. Possible? The only string function that
> supports regular expressions is substring and I
> couldn't make that do what I want.

This should be trivial with plperl ... I'd think you are wasting your
time trying to do it with plpgsql or SQL; this is what Postgres
flexibility is for!

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"Ni aun el genio muy grande llegaría muy lejos
si tuviera que sacarlo todo de su propio interior" (Goethe)

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

Предыдущее
От: Josué Maldonado
Дата:
Сообщение: Re: Copy entire row on elete
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Problem with commandprompt.com