BUG #13310: Please update docs of regexp_replace()

From: guettli(dot)postgres(at)thomas-guettler(dot)de
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #13310: Please update docs of regexp_replace()
Date: 2015-05-18 09:11:36
Message-ID: 20150518091136.1028.4216@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 13310
Logged by: Thomas Güttler
Email address: guettli(dot)postgres(at)thomas-guettler(dot)de
PostgreSQL version: 9.4.1
Operating system: All
Description:

Please improve the example of regexp_replace():

I am missing a "group insert" in the example.

I would replace this example:

regexp_replace('Thomas', '.[mN]a.', 'M') ThM

With this one:

regexp_replace('fooooooobar', 'f(o*)bar', '\\1')

It can be any other example, but a "group insert" (\\1) would be very nice.

I talk about this:

Table 9-6. SQL String Functions and Operators

http://www.postgresql.org/docs/9.4/static/functions-string.html

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message hubert depesz lubaczewski 2015-05-18 12:12:50 GiST index for pgtrgm bloats a lot
Previous Message s.rama194 2015-05-18 05:23:43 BUG #13307: Increasing space