Skip site navigation (1) Skip section navigation (2)

Re: doc bug: SELECT SUBSTRING example is missing keyword FROM

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Arley Lewis <arleylewis(at)gmail(dot)com>
Cc: PostgreSQL Docs List <pgsql-docs(at)postgresql(dot)org>
Subject: Re: doc bug: SELECT SUBSTRING example is missing keyword FROM
Date: 2009-04-28 21:46:46
Message-ID: 18591.1240955206@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-docs
Arley Lewis <arleylewis(at)gmail(dot)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

In response to

pgsql-docs by date

Next:From: liuzg4 liuzg4Date: 2009-05-06 12:34:25
Subject: how to select temp table
Previous:From: Arley LewisDate: 2009-04-28 18:34:37
Subject: doc bug: SELECT SUBSTRING example is missing keyword FROM

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group