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

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

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: Tue, 28 Apr 2009 17:46:46 -0400
  • Message-id: <18591.1240955206@sss.pgh.pa.us> <text/plain>

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



Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group