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 9DF15D1B56F for ; Fri, 24 Oct 2003 17:59:43 +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 38346-10 for ; Fri, 24 Oct 2003 14:59:13 -0300 (ADT) Received: from mail1.ihs.com (mail1.ihs.com [170.207.70.222]) by svr1.postgresql.org (Postfix) with ESMTP id 5C21FD1B580 for ; Fri, 24 Oct 2003 14:57:22 -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 h9OHuFLD015948; Fri, 24 Oct 2003 11:56:15 -0600 (MDT) Date: Fri, 24 Oct 2003 11:44:26 -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/327 X-Sequence-Number: 15727 On 24 Oct 2003, Manuel Sugawara wrote: > "scott.marlowe" writes: > > > 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? > > He was trying to use '[a-z]{2,2}', which doesn't work in PostgreSQL. Oh, ok. Thanks.