Re: Regular expression for lower case to upper case. - Mailing list pgsql-general

From Eagna
Subject Re: Regular expression for lower case to upper case.
Date
Msg-id h0N-he5rsxvbZ3-HVEUSP63RNs7HCoKmncqWQlD_FNVhvOY5fx_1RCaA4I_AkEv01FCfFXn1RyolHI82dOCDf2vZRKLSA2I5Wgy5hY6ZBYo=@protonmail.com
Whole thread Raw
In response to Re: Regular expression for lower case to upper case.  ("Peter J. Holzer" <hjp-pgsql@hjp.at>)
List 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





pgsql-general by date:

Previous
From: Gianni Ceccarelli
Date:
Subject: Re: Regular expression to UPPER() a lower case string
Next
From: Eagna
Date:
Subject: Re: Regular expression for lower case to upper case.