Search Postgresql Archives

Re: Unexpected Results from regexp_replace

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Nov 10, 2015 at 1:12 PM, Susan Hurst <susan.hurst@xxxxxxxxxxxxxxxxxx> 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.​



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux