Re: clarify Regular Expression Match Operators

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: clarify Regular Expression Match Operators
Дата
Msg-id 20180126132835.GG20836@momjian.us
обсуждение исходный текст
Ответ на clarify Regular Expression Match Operators  (PG Doc comments form <noreply@postgresql.org>)
Список pgsql-docs
On Sat, Jan 13, 2018 at 02:59:06PM +0000, PG Doc comments form wrote:
> The following documentation comment has been logged on the website:
> 
> Page: https://www.postgresql.org/docs/10/static/functions-matching.html
> Description:
> 
> Table 9.14 Regular Expression Match Operators
> It is not clear (to me)where I would put one of these operators. The Example
> column does not make sense to me.

Uh, you can use those regular expressions any place you would use an
operator:

    SELECT 'thomas' ~ '.*thomas.*';
     ?column?
    ----------
     t

or in a where clause, e.g. WHERE col ~ 'ab.*c'.  Not sure how we can
improve the docs here.

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

+ As you are, so once was I.  As I am, so you will be. +
+                      Ancient Roman grave inscription +


В списке pgsql-docs по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Correction of intermediate certificate handling
Следующее
От: Daniel Gustafsson
Дата:
Сообщение: Trailing semicolons on partitioning example commands