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

Herouth Maoz <herouth@oumail.openu.ac.il>

From: Herouth Maoz <herouth@oumail.openu.ac.il>
To: pgsql-sql@postgreSQL.org
Date: 1998-09-16T14:42:36Z
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