Re: regexp_replace - replace non-numbers

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: regexp_replace - replace non-numbers
Дата
Msg-id b42b73150810280756k140da6b8oe82a0347b87af161@mail.gmail.com
обсуждение исходный текст
Ответ на regexp_replace - replace non-numbers  (Vincas Dargis <vincas.d@nensis.lt>)
Ответы Re: regexp_replace - replace non-numbers  (Vincas Dargis <vincas.d@nensis.lt>)
Список pgsql-general
On Tue, Oct 28, 2008 at 10:42 AM, Vincas Dargis <vincas.d@nensis.lt> wrote:
> Hello everyone,
>
> I have problem with regexp_replace ( PostgreSQL 8.3.1). Please try this
> crappy string replacement:
>
> select regexp_replace('abcd1235hgj!@#$^&^&*()[]-=', '[^0-9]*' ,'')
>
> ..and I get:
> "1235hgj!@#$^&^&*()[]-="
>

global flag:
select regexp_replace('abcd1235hgj!@#$^&^&*()[]-=', '[^0-9]*' ,'', 'g');

merlin

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

Предыдущее
От: Vincas Dargis
Дата:
Сообщение: regexp_replace - replace non-numbers
Следующее
От: Reid Thompson
Дата:
Сообщение: Re: Piping CSV data to psql when executing COPY .. FROM STDIN