Re: INSTR() like function?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Michael Loftis" <taos(at)activesw(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: INSTR() like function?
Date: 2000-10-12 21:50:26
Message-ID: 28785.971387426@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Michael Loftis" <taos(at)activesw(dot)com> writes:
> IE are the characters A or B or C or D in the string "dogma" would be
> INSTR('ABCD','dogma');

See the regular-expression match operators (~ and ~*). The above would
be
select 'dogma'::text ~* '[ABCD]'::text;
assuming you meant you wanted case-insensitive match.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michelle Murrain 2000-10-12 22:11:56 GUIs, OSes and related
Previous Message Michael Loftis 2000-10-12 21:36:35 INSTR() like function?