Re: regexp_replace not respecting greediness - Mailing list pgsql-bugs

From David G. Johnston
Subject Re: regexp_replace not respecting greediness
Date
Msg-id CAKFQuwYVm=NX1oo6kHUn3EdGuXJphq89EmjgeaCJDk_dpRjUew@mail.gmail.com
Whole thread Raw
In response to regexp_replace not respecting greediness  (Simon Ellmann <simon.ellmann@tum.de>)
Responses Re: regexp_replace not respecting greediness
List pgsql-bugs
On Friday, September 19, 2025, Simon Ellmann <simon.ellmann@tum.de> wrote:
With the following regular expression, the second .* seems to match non-greedily although (if I am correct) it should match greedily:

Working as documented in rule 6:


David J.

pgsql-bugs by date:

Previous
From: Simon Ellmann
Date:
Subject: regexp_replace not respecting greediness
Next
From: Tom Lane
Date:
Subject: Re: regexp_replace not respecting greediness