| From: | Charlie <scorpdaddy(at)hotmail(dot)com> |
|---|---|
| To: | "Andreas" <maps(dot)on(at)gmx(dot)net>,pgsql-sql(at)postgresql(dot)org |
| Subject: | Re: [SQL] How to remove a set of characters in text-columns ? |
| Date: | 2011-06-30 19:57:08 |
| Message-ID: | BLU0-SMTP1870ADD1AC3E8DDFBC4BBA3CE580@phx.gbl |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
Would
regexp_replace(src_str, '[\{\}\[\]\(\)\.', '')
at
http://www.postgresql.org/docs/9.0/static/functions-string.html
help?
----- Reply message -----
From: "Andreas" <maps(dot)on(at)gmx(dot)net>
Date: Thu, Jun 30, 2011 4:28 pm
Subject: [SQL] How to remove a set of characters in text-columns ?
To: <pgsql-sql(at)postgresql(dot)org>
Hi,
how can I remove a set of characters in text-columns ?
Say I'd like to remove { } ( ) ' " , ; . : !
Of course I can chain replace ( replace ( replace ( replace ( ... , '' ) ..... and replace the chars one by one against an empty string ''.
There might be a more elegant way.
Is there ?
regards
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tim Landscheidt | 2011-07-01 02:17:55 | Re: How to remove a set of characters in text-columns ? |
| Previous Message | Steve Crawford | 2011-06-30 19:49:20 | Re: How to remove a set of characters in text-columns ? |