Re: pattern matching - Mailing list pgsql-novice

From Brett W. McCoy
Subject Re: pattern matching
Date
Msg-id Pine.LNX.4.30.0101092300120.11754-100000@chapelperilous.net
Whole thread Raw
In response to pattern matching  ("Alan Nilsson" <anilsson@apple.com>)
Responses Re: pattern matching  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-novice
On Tue, 9 Jan 2001, Alan Nilsson wrote:

> I am trying to search for text(varchar) using the ILIKE operator,
> however I always get a parser error.  Similarly the ~~* operator does
> not work. (actually, doesn't exist)

The case-insensitive regexp operator is ~*, and it does work in
PostgreSQL.  There is no ~~* or ILIKE, but you can do LIKE UPPER('*text*')
to achieve the same thing.

-- Brett
                                     http://www.chapelperilous.net/~bmccoy/
---------------------------------------------------------------------------
According to my best recollection, I don't remember.
        -- Vincent "Jimmy Blue Eyes" Alo


pgsql-novice by date:

Previous
From: "Alan Nilsson"
Date:
Subject: pattern matching
Next
From: Tom Lane
Date:
Subject: Re: pattern matching