pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Eckermann <jeff_eckermann@yahoo.com>
To: scott.marlowe <scott.marlowe@ihs.com>
Cc: Matias Surdi <matiass@interlap.com.ar>
Cc: pgsql-sql@postgresql.org
Subject: Re: Regular expression problem
Date: Fri, 24 Oct 2003 11:43:20 -0700 (PDT)
Message-ID: <20031024184320.45589.qmail@web20802.mail.yahoo.com> (raw)
In-Reply-To: <Pine.LNX.4.33.0310241036220.24949-100000@css120.ihs.com>

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" <scott.marlowe@ihs.com> wrote:
> On 24 Oct 2003, Manuel Sugawara wrote:
> 
> > Matias Surdi <matiass@interlap.com.ar> 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



view thread (7+ messages)

Message-ID: <20031024184320.45589.qmail@web20802.mail.yahoo.com>
Permalink:  ../20031024184320.45589.qmail@web20802.mail.yahoo.com/
Also on:    postgresql.org/message-id/20031024184320.45589.qmail@web20802.mail.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: jeff_eckermann@yahoo.com, scott.marlowe@ihs.com, matiass@interlap.com.ar
  Subject: Re: Regular expression problem
  In-Reply-To: <20031024184320.45589.qmail@web20802.mail.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox