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 1p41kJ-0007cI-VW for pgsql-general@arkaria.postgresql.org; Sat, 10 Dec 2022 15:26:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p41kH-00051l-NI for pgsql-general@arkaria.postgresql.org; Sat, 10 Dec 2022 15:26:33 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p41kH-00051c-D5 for pgsql-general@lists.postgresql.org; Sat, 10 Dec 2022 15:26:33 +0000 Received: from mail.thenautilus.net ([178.162.154.203]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p41kC-0007FA-W5 for pgsql-general@lists.postgresql.org; Sat, 10 Dec 2022 15:26:32 +0000 Received: (qmail 13579 invoked from network); 10 Dec 2022 15:26:26 -0000 Received: from unknown (HELO nautilus) (dakkar@::ffff:81.2.107.215) by 0 with ESMTPA; 10 Dec 2022 15:26:26 -0000 Date: Sat, 10 Dec 2022 15:26:25 +0000 From: Gianni Ceccarelli To: pgsql-general@lists.postgresql.org Subject: Re: Regular expression to UPPER() a lower case string Message-ID: <20221210152619.59634d94@nautilus> In-Reply-To: <20221210140843.w65qhz5jmtqa5nkj@hjp.at> References: <5C_J_wdWjnwxieBfiMQgeIXLQ5RYXN4-W5jIZyCpkAqlhGO8GxRqwb1jCHfh0EO9SvHYcysvVUXM-ocEBPSb9A-_iiSwfY0DKvljrZ50iA4=@protonmail.com> <20221210104141.35498bc4@thenautilus.net> <20221210131346.3pqmksqk4jvnyxrm@hjp.at> <20221210134420.247e7a3a@nautilus> <20221210140843.w65qhz5jmtqa5nkj@hjp.at> X-Mailer: Claws Mail 4.1.1git6 (GTK 3.24.34; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2022-12-10 "Peter J. Holzer" wrote: > So, what's the point you are trying to make? I suspect I mis-understood a thing you wrote=E2=80=A6 ignore me. > > Of course all of this is dependent of locale, too. =20 > Right. But why would that be different for regexp_replace than for > upper/lower? I was trying to point out (badly) that the code shown, based on a simplistic application of `regex_replace`, is going to work even worse than `upper` (as you point out elsethread). --=20 Dakkar - GPG public key fingerprint =3D A071 E618 DD2C 5901 9574 6FE2 40EA 9883 7519 3F88 key id =3D 0x75193F88