Re: doc bug: SELECT SUBSTRING example is missing keyword FROM - Mailing list pgsql-docs

From Tom Lane
Subject Re: doc bug: SELECT SUBSTRING example is missing keyword FROM
Date
Msg-id 18591.1240955206@sss.pgh.pa.us
Whole thread Raw
In response to doc bug: SELECT SUBSTRING example is missing keyword FROM  (Arley Lewis <arleylewis@gmail.com>)
List pgsql-docs
Arley Lewis <arleylewis@gmail.com> writes:
> Two "FROM"s are missing from this section. Where it now says:
> -------------
> SELECT SUBSTRING('XY1234Z', 'Y*([0-9]{1,3})');
> Result: 123
> SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})');
> Result: 1

There is nothing wrong with these examples.

regression=# SELECT SUBSTRING('XY1234Z', 'Y*([0-9]{1,3})');
 substring
-----------
 123
(1 row)

regression=# SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})');
 substring
-----------
 1
(1 row)


            regards, tom lane

pgsql-docs by date:

Previous
From: Arley Lewis
Date:
Subject: doc bug: SELECT SUBSTRING example is missing keyword FROM
Next
From: Alvaro Herrera
Date:
Subject: Re: [GENERAL] how to select temp table