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 75248D1B527 for ; Fri, 24 Oct 2003 17:14: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 27934-05 for ; Fri, 24 Oct 2003 14:14:13 -0300 (ADT) Received: from conexa.fciencias.unam.mx (conexa.fciencias.unam.mx [132.248.109.170]) by svr1.postgresql.org (Postfix) with ESMTP id 45C0BD1B50C for ; Fri, 24 Oct 2003 14:14:12 -0300 (ADT) Received: from conexa.fciencias.unam.mx (conexa.fciencias.unam.mx [127.0.0.1]) by conexa.fciencias.unam.mx (8.12.8/8.12.8) with ESMTP id h9OIGsmB002348; Fri, 24 Oct 2003 12:16:54 -0600 Received: (from masm@localhost) by conexa.fciencias.unam.mx (8.12.8/8.12.8/Submit) id h9OIGsOF002346; Fri, 24 Oct 2003 12:16:54 -0600 X-Authentication-Warning: conexa.fciencias.unam.mx: masm set sender to masm@fciencias.unam.mx using -f To: "scott.marlowe" Cc: Matias Surdi , Subject: Re: Regular expression problem References: In-Reply-To: From: Manuel Sugawara User-Name: Manuel Sugawara User-Mail-Address: masm@fciencias.unam.mx Date: 24 Oct 2003 12:16:54 -0600 Message-ID: Lines: 23 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Portable Code) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/321 X-Sequence-Number: 15721 "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. Regards, Manuel.