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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-docs by date

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