Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 774599FB7BE for ; Wed, 21 Mar 2007 11:29:07 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 82992-04 for ; Wed, 21 Mar 2007 11:28:47 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from presinet.com (mail.presinet.com [209.53.156.1]) by postgresql.org (Postfix) with ESMTP id E3EDA9FB785 for ; Wed, 21 Mar 2007 11:29:01 -0300 (ADT) Received: from [10.10.1.151] ([10.10.1.151]) by presinet.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 21 Mar 2007 07:26:09 -0700 Message-ID: <4601412B.4090500@presinet.com> Date: Wed, 21 Mar 2007 07:28:59 -0700 From: Bricklen Anderson User-Agent: Thunderbird 1.5.0.10 (X11/20070306) MIME-Version: 1.0 To: "Ezequias R. da Rocha" CC: pgsql-sql@postgresql.org Subject: Re: Regular Expressions References: <46013B89.4040603@fastcon.com.br> In-Reply-To: <46013B89.4040603@fastcon.com.br> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 21 Mar 2007 14:26:09.0203 (UTC) FILETIME=[DE615030:01C76BC4] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.037 tagged_above=0 required=5 tests=AWL, BAYES_50 X-Spam-Level: X-Archive-Number: 200703/283 X-Sequence-Number: 27921 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' > > where the result occurs even if the field has Ezequias or Esequias. > > Regards > Ezequias Pretty easy to find matches in the documentation at http://search.postgresql.org/ eg. http://www.postgresql.org/docs/8.2/interactive/functions-matching.html