Re: Regular expression to UPPER() a lower case string

From: Gianni Ceccarelli <dakkar(at)thenautilus(dot)net>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Regular expression to UPPER() a lower case string
Date: 2022-12-10 10:41:41
Message-ID: 20221210104141.35498bc4@thenautilus.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2022-12-10 Eagna <eagna(at)protonmail(dot)com> wrote:
> This should be very (very) easy - I don't know what I'm missing -
> I've done quite complex regular expressions before and I don't know
> what I'm doing wrong. Brain burping this morning!

You're missing that:

* `regexp_replace` doesn't work like that, at all
* your logic only works by accident for some languages (try to upcase
a `ß` or a `ı`)

--
Dakkar - <Mobilis in mobile>
GPG public key fingerprint = A071 E618 DD2C 5901 9574
6FE2 40EA 9883 7519 3F88
key id = 0x75193F88

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Eagna 2022-12-10 10:57:32 Re: Regular expression for lower case to upper case.
Previous Message Eagna 2022-12-10 10:32:23 Regular expression to UPPER() a lower case string