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 47915D1B50C for ; Fri, 24 Oct 2003 18:43:52 +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 48792-03 for ; Fri, 24 Oct 2003 15:43:22 -0300 (ADT) Received: from web20802.mail.yahoo.com (web20802.mail.yahoo.com [216.136.226.191]) by svr1.postgresql.org (Postfix) with SMTP id BD75BD1B4FE for ; Fri, 24 Oct 2003 15:43:19 -0300 (ADT) Message-ID: <20031024184320.45589.qmail@web20802.mail.yahoo.com> Received: from [208.13.35.65] by web20802.mail.yahoo.com via HTTP; Fri, 24 Oct 2003 11:43:20 PDT Date: Fri, 24 Oct 2003 11:43:20 -0700 (PDT) From: Jeff Eckermann Subject: Re: Regular expression problem To: "scott.marlowe" Cc: Matias Surdi , pgsql-sql@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/329 X-Sequence-Number: 15729 7.4 uses a completely new regex engine, so comparisons with that will not be valid anyway. Pre-7.4 regex behaviour is all documented: Users Guide -> Functions & Operators -> Pattern Matching --- "scott.marlowe" wrote: > 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? > > > ---------------------------(end of > broadcast)--------------------------- > TIP 2: you can get off all lists at once with the > unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org) __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com