Re: Regular expression for lower case to upper case.

From: Eagna <eagna(at)protonmail(dot)com>
To: "Peter J(dot) Holzer" <hjp-pgsql(at)hjp(dot)at>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Regular expression for lower case to upper case.
Date: 2022-12-10 10:57:32
Message-ID: h0N-he5rsxvbZ3-HVEUSP63RNs7HCoKmncqWQlD_FNVhvOY5fx_1RCaA4I_AkEv01FCfFXn1RyolHI82dOCDf2vZRKLSA2I5Wgy5hY6ZBYo=@protonmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Hi, and thanks for your input,

> Tha said, the replacement string in some editors (like Vim) and some
> programming languages (like Perl) provides syntax for changing case
> (both vi(m) and Perl use \u and \U...\E for uppercasing).

This is probably why I was so frustrated - I thought that there should be an equivalent in PostgreSQL.

I was going mad trying all of these from my searches.

> > I know about the UPPER() and LOWER() functions and they are not what I want.

> Can you elaborate why you can't use those?

I want to index on a REGEXP_REPLACE() - I thought using lower -> upper would be a good test.

I could always have used another REGEXP_REPLACE() for my testing, but I then became "obsessed" with the idea of using REGEXP_REPLACE() as a substitute for UPPER() - kind of an obfuscated code competition with myself! :-)

Again, thanks for your input.

E.

> hp

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Eagna 2022-12-10 11:00:48 Re: Regular expression for lower case to upper case.
Previous Message Gianni Ceccarelli 2022-12-10 10:41:41 Re: Regular expression to UPPER() a lower case string