RE: INSTR() like function? - Mailing list pgsql-general

From Michael Loftis
Subject RE: INSTR() like function?
Date
Msg-id 001301c0349c$8ae65fb0$740610ac@activesw.com
Whole thread Raw
In response to Re: INSTR() like function?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Thanks much!  I never even realised pg had regex built in.

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


"Michael Loftis" <taos@activesw.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


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: GUIs, OSes and related
Next
From: Daniel Freedman
Date:
Subject: Re: postgresql 7.1