Re: [PATCHES] regexp_replace

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Atsushi Ogawa <a_ogawa(at)hi-ho(dot)ne(dot)jp>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, pgsql-hackers(at)postgresql(dot)org, david(at)fetter(dot)org
Subject: Re: [PATCHES] regexp_replace
Date: 2005-06-25 02:32:23
Message-ID: 200506250232.j5P2WNm05295@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Atsushi Ogawa wrote:
> I think that it is good to specify the flags by one character as well
> as Perl.
>
> I propose the following specification:
>
> regexp_replace(source text, pattern text, replacement text, [flags text])
> returns text
>
> The flags can use the following values:
> g: global (replace all)
> i: ignore case
>
> When the flags is not specified, case sensitive, replace the first
> instance only.

This seems good to me.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2005-06-25 04:20:38 Re: [BUGS] BUG #1467: fe_connect doesn't handle EINTR right
Previous Message Bruce Momjian 2005-06-25 02:27:49 Re: [BUGS] BUG #1467: fe_connect doesn't handle EINTR right

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2005-06-25 02:32:42 Re: Implementing SELECT FOR UPDATE [NOWAIT]
Previous Message Bruce Momjian 2005-06-25 02:31:41 Re: plperl features