regexp replace?

Поиск
Список
Период
Сортировка
От CSN
Тема regexp replace?
Дата
Msg-id 20040506205916.40737.qmail@web40610.mail.yahoo.com
обсуждение исходный текст
Ответы Re: regexp replace?  ("scott.marlowe" <scott.marlowe@ihs.com>)
Re: regexp replace?  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
Список pgsql-general
I'd like to create a function that will take strings
like:

abcdef 'quote1' "quote2" / xyz etc.

and return:

abcdef-quote1-quote2-xyz-etc.

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.

TIA,
CSN




__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
http://hotjobs.sweepstakes.yahoo.com/careermakeover

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

Предыдущее
От: Josué Maldonado
Дата:
Сообщение: Copy entire row on elete
Следующее
От: Denis Braekhus
Дата:
Сообщение: Re: vacuumdb is failing with NUMBER OF INDEX TUPLES NOT