From: Richard DeVenezia <radevenz@ix.netcom.com>
To: pgsql-sql@postgresql.org
Subject: Help: Using a regular expression match as a value
Date: Sat, 21 Oct 2000 10:18:07 -0400
Message-ID: <023401c03b69$bcc55df0$0101a8c0@supermicro> (raw)
I am just getting started with pgsql and have read available docs I can
find.
I know I can match a row in a where clause using a regular expression.
How can I use what was regexp matched (e.g. perl $1,$2, etc...) as a column
assignment ?
I'm looking for something like this?
select ...
...
$1 of firstname, /^R.*d/ as name_starts_with_r_and_ends_with_d
...
TIA
Richard DeVenezia
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: radevenz@ix.netcom.com
Subject: Re: Help: Using a regular expression match as a value
In-Reply-To: <023401c03b69$bcc55df0$0101a8c0@supermicro>
References: <023401c03b69$bcc55df0$0101a8c0@supermicro>
* 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