RE: INSTR() like function?

From: "Michael Loftis" <taos(at)activesw(dot)com>
To: "'Tom Lane'" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: RE: INSTR() like function?
Date: 2000-10-12 22:34:10
Message-ID: 001301c0349c$8ae65fb0$740610ac@activesw.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thanks much! I never even realised pg had regex built in.

-----Original Message-----
From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
Sent: Thursday, October 12, 2000 2:50 PM
To: Michael Loftis
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] INSTR() like function?

"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

Browse pgsql-general by date

  From Date Subject
Next Message Daniel Freedman 2000-10-12 22:36:12 Re: postgresql 7.1
Previous Message Tom Lane 2000-10-12 22:19:41 Re: GUIs, OSes and related