BUG #13310: Please update docs of regexp_replace() - Mailing list pgsql-bugs

From guettli.postgres@thomas-guettler.de
Subject BUG #13310: Please update docs of regexp_replace()
Date
Msg-id 20150518091136.1028.4216@wrigleys.postgresql.org
Whole thread Raw
Responses Re: BUG #13310: Please update docs of regexp_replace()  ("David G. Johnston" <david.g.johnston@gmail.com>)
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      13310
Logged by:          Thomas Güttler
Email address:      guettli.postgres@thomas-guettler.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

pgsql-bugs by date:

Previous
From: s.rama194@gmail.com
Date:
Subject: BUG #13307: Increasing space
Next
From: "David G. Johnston"
Date:
Subject: Re: BUG #13310: Please update docs of regexp_replace()