Re[2]: [SQL] How to Make Case InSensitive???

From: Herouth Maoz <herouth(at)oumail(dot)openu(dot)ac(dot)il>
To: pgsql-sql(at)postgreSQL(dot)org
Subject: Re[2]: [SQL] How to Make Case InSensitive???
Date: 1998-09-16 14:42:36
Message-ID: l03110703b2257e356866@[147.233.159.109]
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

At 16:14 +0200 on 16/9/98, Sferacarta Software wrote:

> regular expression operators ^ stand for first character and $ stand
> for last character:
>
> ~* '^india$'
>
> matches India
> india
> INDIA
>
> but not Indiana
> New India

Another way to think of it is like this:

'india' is eqivalent to "contains 'india'"
'^india' is eqivalent to "starts with 'india'"
'india$' is eqivalent to "ends with 'india'"
'^india$' is eqivalent to "is exactly 'india'"

Herouth

--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Bruce Momjian 1998-09-16 17:30:47 Re: [SQL] How to Make Case InSensitive???
Previous Message Sferacarta Software 1998-09-16 14:14:20 Re[2]: [SQL] How to Make Case InSensitive???