Re: Mixing greediness in regexp_matches
Tom Lane <[email protected]> Mon, 23 Dec 2019 11:16:58 -0500
| Newsgroups | gmane.comp.db.postgresql.general |
|---|---|
| Message-ID | <[email protected]> |
"Daniel Verite" <[email protected]> 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