Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 0CC8D9FA66C for ; Wed, 21 Mar 2007 14:39:50 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 30255-07 for ; Wed, 21 Mar 2007 14:39:45 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from correio2.docasdoporto.com.br (8.144.199.200.docasdoporto.com.br [200.199.144.8]) by postgresql.org (Postfix) with ESMTP id D701C9FA594 for ; Wed, 21 Mar 2007 14:39:42 -0300 (ADT) Received: from [201.30.172.2] (account ezequias@fastcon.com.br HELO [192.168.0.110]) by correio2.docasdoporto.com.br (CommuniGate Pro SMTP 4.1.8) with ESMTP-TLS id 47040430; Wed, 21 Mar 2007 14:57:10 -0300 Message-ID: <46016D43.9030300@fastcon.com.br> Date: Wed, 21 Mar 2007 14:37:07 -0300 From: "Ezequias R. da Rocha" User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: Guy Fraser CC: pgsql-sql@postgresql.org Subject: Re: Regular Expressions References: <46013B89.4040603@fastcon.com.br> <1174487806.26600.15.camel@sigurd.incentre.net> In-Reply-To: <1174487806.26600.15.camel@sigurd.incentre.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/289 X-Sequence-Number: 27927 Guy Fraser escreveu: > On Wed, 2007-03-21 at 11:04 -0300, Ezequias R. da Rocha wrote: > >> Hi list, >> >> I would like to know if postgresql has a Regular Expressions (Regex) >> implemented already. >> >> With it we could implement queries like >> >> Select * from myClientes where name = 'E[zs]equias' >> >> > Case Sensitive Regular Match ~ > Case Insensitive Regular Match ~* > Negated Case Sensitive Regular Match !~ > Negated Case Insensitive Regular Match !~* > > Select * from myClientes where name ~ 'E[zs]equias' > > >> where the result occurs even if the field has Ezequias or Esequias. >> >> Regards >> Ezequias >> >> ---------------------------(end of broadcast)--------------------------- >> TIP 2: Don't 'kill -9' the postmaster >> >> Great I am thinking of putting my like to rest. I felt it faster than "like" statement, have you any information about that ? Ezequias