Re: Regular expression problem - Mailing list pgsql-sql

From scott.marlowe
Subject Re: Regular expression problem
Date
Msg-id Pine.LNX.4.33.0310241144180.25425-100000@css120.ihs.com
Whole thread Raw
In response to Re: Regular expression problem  (Manuel Sugawara <masm@fciencias.unam.mx>)
List pgsql-sql
On 24 Oct 2003, Manuel Sugawara wrote:

> "scott.marlowe" <scott.marlowe@ihs.com> 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.



pgsql-sql by date:

Previous
From: Mathieu Arnold
Date:
Subject: Re: date_trunc for 5 minutes intervals
Next
From: Rod Taylor
Date:
Subject: Re: naming conventions constraint