From: Bruno Wolff III <bruno@[66.92.219.49]>
To: Vigny Christophe <cvigny@artprice.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: update with RE
Date: Thu, 6 Dec 2001 14:05:32 -0600
Message-ID: <20011206140532.A22419@wolff.to> (raw)
In-Reply-To: <3C0B8012.215C8AC1@artprice.com>
References: <3C0B8012.215C8AC1@artprice.com>
On Mon, Dec 03, 2001 at 02:37:22PM +0100,
Vigny Christophe <cvigny@artprice.com> wrote:
> hello,
>
> Is it possible to use a Regular expression to update a field like in
> perl (s/T/t/)
> ie :
> update table set name=($1) where name ~* '.*(phe).*'
> substitute using a grouping function $1 is in fact 'phe'.
>
> It should be really interesting and powerfull !
You would have to write a function to do this. There is a note about this
in the 7.2 documentation.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: bruno@[66.92.219.49], cvigny@artprice.com
Subject: Re: update with RE
In-Reply-To: <20011206140532.A22419@wolff.to>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox