Re: Replace string - Mailing list pgsql-sql

From PostgreSQL Admin
Subject Re: Replace string
Date
Msg-id 461E8DAB.6090504@productivitymedia.com
Whole thread Raw
In response to Re: Replace string  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
List pgsql-sql
> test=*# select regexp_replace(regexp_replace('The blue fox\'s fur.', ' ', '-', 'g'), '\\.', '');
>    regexp_replace
> --------------------
>  The-blue-fox's-fur
> (1 row)
>
>
> Andreas
>   
Thanks for the input.


I came up with this:

REPLACE(regexp_replace('The blue fox\'s fur', '[[:punct:]]', ''), ' ', '-');


pgsql-sql by date:

Previous
From: T E Schmitz
Date:
Subject: replace EXCEPT by JOIN
Next
From: Karthikeyan Sundaram
Date:
Subject: question on plpgsql block