X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 97904D1B4E6 for ; Fri, 24 Oct 2003 16:53:33 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 27697-03 for ; Fri, 24 Oct 2003 13:53:03 -0300 (ADT) Received: from mail1.ihs.com (mail1.ihs.com [170.207.70.222]) by svr1.postgresql.org (Postfix) with ESMTP id 62316D1B4E1 for ; Fri, 24 Oct 2003 13:53:02 -0300 (ADT) Received: from css120.ihs.com (css120.ihs.com [170.207.105.120]) by mail1.ihs.com (8.12.10/8.12.10) with ESMTP id h9OGn4LD011309; Fri, 24 Oct 2003 10:49:04 -0600 (MDT) Date: Fri, 24 Oct 2003 10:37:15 -0600 (MDT) From: "scott.marlowe" To: Manuel Sugawara Cc: Matias Surdi , Subject: Re: Regular expression problem In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-IHS-MailScanner: Found to be clean X-IHS-MailScanner-SpamCheck: X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/320 X-Sequence-Number: 15720 On 24 Oct 2003, Manuel Sugawara wrote: > Matias Surdi writes: > > > Manuel Sugawara wrote: > > >Use something like '^[a-z]{2}$' > > > > so, is this a bug???? > > No it is not. The sintax you are using is not supported. It certainly seems to work in Postgresql 7.4 beta 4: create table test2 (info text); CREATE TABLE insert into test2 values ('ab'); INSERT 109169538 1 insert into test2 values ('abc'); INSERT 109169539 1 marl8412=# select * from test2 where info ~ '^[a-z]{2}$'; info ------ ab Or was there more to that message I wasn't getting?