Re: Unexpected Results from regexp_replace

Поиск
Список
Период
Сортировка
От Susan Hurst
Тема Re: Unexpected Results from regexp_replace
Дата
Msg-id 3738b6ca95a740bd1ad7b8ccef142364@mail.brookhurstdata.net
обсуждение исходный текст
Ответ на Re: Unexpected Results from regexp_replace  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-general
Excellent!  I tried the global flag before but I had it in the wrong
place.

Thanks for the quick service, David!

---
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Susan E Hurst
Principal Consultant
Email: susan.hurst@brookhurstdata.com
Mobile: 314-486-3261

On 2015-11-10 14:19, David G. Johnston wrote:
> On Tue, Nov 10, 2015 at 1:12 PM, Susan Hurst
> <susan.hurst@brookhurstdata.com> wrote:
>
>> What is the trick for removing all instances of unwanted characters
>> and spaces?
>
> ​(g)lobal flag.
>
> SELECT regexp_replace('hello - world n', '[^0-9a-z]+', '', 'g')
> ​;
>
> David J.​


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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: Unexpected Results from regexp_replace
Следующее
От: "Mammarelli, Joanne T"
Дата:
Сообщение: attempting to install tds_fw-master on redhat