Re: Mixing greediness in regexp_matches

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Daniel Verite" <daniel(at)manitou-mail(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Mixing greediness in regexp_matches
Date: 2019-12-23 16:16:58
Message-ID: 9597.1577117818@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Daniel Verite" <daniel(at)manitou-mail(dot)org> writes:
> FWIW, in plperl, there's a simple solution:
> $string =~ s/(foobar|foo|...)/$replace{$1}/g

Well, our manual does suggest using plperl (or pltcl) when the
built-in pattern match functions aren't adequate ;-)

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Maksim Milyutin 2019-12-23 16:36:49 Re: Commit to primary with unavailable sync standby
Previous Message Daniel Verite 2019-12-23 16:10:41 Re: Mixing greediness in regexp_matches