|
|||||||||||
|
Re: [GENERAL] [Urgent] Regexp_replace question
From: Michael Fuhr <mike(at)fuhr.org>
Date: Tue Sep 25 2007 - 02:46:38 EDT
Why do you want to do that? > I would like to remove all instances of the following characters: test=> select id, t, regexp_replace(t, e'[\\\\[\\]+]', '', 'g') from foo; id | t | regexp_replace ----+------------+---------------- 1 | foo[]+\bar | foobar (1 row)
test=> select id, t, translate(t, e'[]\\+', '') from foo;
id | t | translate
-- Michael Fuhr ---------------------------(end of broadcast)--------------------------- TIP 5: don't forget to increase your free space map settingsReceived on Tue Sep 25 02:50:36 2007 This archive was generated by hypermail 2.1.8 : Sun Oct 07 2007 - 11:50:34 EDT |
||||||||||
|
|||||||||||