Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mv0wJ-0000S3-N6 for pgsql-general@arkaria.postgresql.org; Wed, 08 Dec 2021 17:41:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mv0wI-0007xV-KY for pgsql-general@arkaria.postgresql.org; Wed, 08 Dec 2021 17:41:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mv0wI-0007xH-9n for pgsql-general@lists.postgresql.org; Wed, 08 Dec 2021 17:41:10 +0000 Received: from smtp06.smtpout.orange.fr ([80.12.242.128] helo=smtp.smtpout.orange.fr) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mv0wE-0001sg-8e for pgsql-general@lists.postgresql.org; Wed, 08 Dec 2021 17:41:09 +0000 Received: from X201.home ([86.207.208.204]) by smtp.orange.fr with SMTP id v0w6m3HW5RLGpv0w6mOAGK; Wed, 08 Dec 2021 18:41:05 +0100 X-ME-Helo: X201.home X-ME-Date: Wed, 08 Dec 2021 18:41:05 +0100 X-ME-IP: 86.207.208.204 Date: Wed, 8 Dec 2021 18:40:58 +0100 From: Vincent Veyron To: Shaozhong SHI Cc: pgsql-general Subject: Re: How to allow null as an option when using regexp_matches? Message-Id: <20211208184058.a0fcdb1c8d72ff6dc5e23851@wanadoo.fr> In-Reply-To: References: X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 8 Dec 2021 17:07:27 +0000 Shaozhong SHI wrote: >=20 > Any good example? >=20 Plenty of them in the fine documentation : https://www.postgresql.org/search/?q=3Dcoalesce -- Bien =E0 vous, Vincent Veyron=20 https://compta.libremen.com Logiciel libre de comptabilit=E9 g=E9n=E9rale en partie double