Re: [PATCHES] regexp_replace - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [PATCHES] regexp_replace
Date
Msg-id 200506250232.j5P2WNm05295@candle.pha.pa.us
Whole thread Raw
In response to Re: [PATCHES] regexp_replace  (Atsushi Ogawa <a_ogawa@hi-ho.ne.jp>)
Responses Re: [PATCHES] regexp_replace
List pgsql-hackers
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@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [BUGS] BUG #1467: fe_connect doesn't handle EINTR right
Next
From: Tom Lane
Date:
Subject: Re: [BUGS] BUG #1467: fe_connect doesn't handle EINTR right