Search Postgresql Archives

Re: Replacing characters in a string

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sergey Konoplev <gray.ru@xxxxxxxxx> writes:
> Just specify 'g' as the flags parameter (the 4th one). It means 'globally'.

> SELECT regexp_replace('xaxx', 'x', 'e', 'g');

> There are more of this flags described here:
> http://www.postgresql.org/docs/8.4/interactive/functions-matching.html#POSIX-EMBEDDED-OPTIONS-TABLE

> p.s. The question is for hackers - BTW I did not find 'g' in this
> table, is it a docs bug?

No.  That table is referenced for numerous cases where 'g' is not an
allowed flag.  Instead, 'g' is documented in-line in the description
of regexp_replace.

			regards, tom lane

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux