Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ef43c-0008Tt-GA for pgsql-docs@arkaria.postgresql.org; Fri, 26 Jan 2018 13:28:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ef43b-0000fU-Us for pgsql-docs@arkaria.postgresql.org; Fri, 26 Jan 2018 13:28:39 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ef43b-0000fL-Lw for pgsql-docs@lists.postgresql.org; Fri, 26 Jan 2018 13:28:39 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ef43Z-0008Ju-30 for pgsql-docs@lists.postgresql.org; Fri, 26 Jan 2018 13:28:38 +0000 Received: from bruce by momjian.us with local (Exim 4.84_2) (envelope-from ) id 1ef43X-0003YU-TG; Fri, 26 Jan 2018 08:28:35 -0500 Date: Fri, 26 Jan 2018 08:28:35 -0500 From: Bruce Momjian To: bgailer@gmail.com, pgsql-docs@lists.postgresql.org Subject: Re: clarify Regular Expression Match Operators Message-ID: <20180126132835.GG20836@momjian.us> References: <20180113145906.1408.37345@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180113145906.1408.37345@wrigleys.postgresql.org> User-Agent: Mutt/1.5.23 (2014-03-12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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 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 +