Search Postgresql Archives

Re: Regular expressions in procs

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

 



Steve Manes wrote:
> I apologize if I'm having a rookie brain block, but is there a way to 
> massage a string inside a proc to, for instance, strip it of all 
> non-alpha characters using a regular expression?

SELECT regexp_replace(E'--> text\\\0120815_12 <--', '[^[:alpha:]]', '',
'g');
 regexp_replace 
----------------
 text
(1 row)

Yours,
Laurenz Albe


[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