Re: Mixing greediness in regexp_matches - Mailing list pgsql-general

From Tom Lane
Subject Re: Mixing greediness in regexp_matches
Date
Msg-id 9597.1577117818@sss.pgh.pa.us
Whole thread Raw
In response to Re: Mixing greediness in regexp_matches  ("Daniel Verite" <daniel@manitou-mail.org>)
List pgsql-general
"Daniel Verite" <daniel@manitou-mail.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



pgsql-general by date:

Previous
From: "Daniel Verite"
Date:
Subject: Re: Mixing greediness in regexp_matches
Next
From: Maksim Milyutin
Date:
Subject: Re: Commit to primary with unavailable sync standby