Re: Regex

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: MaRCeLO PeReiRA <gandalf_mp(at)yahoo(dot)com(dot)br>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Regex
Date: 2006-02-06 20:35:34
Message-ID: 28900.1139258134@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

MaRCeLO PeReiRA <gandalf_mp(at)yahoo(dot)com(dot)br> writes:
> Is there a way to execute a regex, inside a SELECT
> statement, to substitute things?

There's a regex_replace() function in recent PG versions. Or you could
write a function in plperl or pltcl to use the regex capabilities of
those languages.

regards, tom lane

In response to

  • Regex at 2006-02-06 20:13:22 from MaRCeLO PeReiRA

Responses

  • Re: Regex at 2006-02-06 23:28:19 from rlee0001

Browse pgsql-general by date

  From Date Subject
Next Message Emi Lu 2006-02-06 21:12:35 SESSION_USER vs. CURRENT_USER
Previous Message MaRCeLO PeReiRA 2006-02-06 20:13:22 Regex