Re: POSIX Regular Expression question - Mailing list pgsql-sql

From Bruno Wolff III
Subject Re: POSIX Regular Expression question
Date
Msg-id 20050906153356.GD30161@wolff.to
Whole thread Raw
In response to Re: POSIX Regular Expression question  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-sql
On Mon, Sep 05, 2005 at 16:19:28 +0200, Peter Eisentraut <peter_e@gmx.net> wrote:
> Am Montag, 5. September 2005 15:57 schrieb Aldor:
> > I want to get out a string only with characters A-Za-z.
> > Any idea how to do this in Postgres with POSIX Regex?
> 
> Presumably,
> 
>     colname ~ '^[A-Za-z]*$'
> 
> If you want to be independent of locale issues, then you'd have to enumerate 
> all the letters instead of using a range specification.

Or use:

colname ~ '^[[:alpha:]]*$'


pgsql-sql by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: Help with UNION query
Next
From: Leon Torres
Date:
Subject: Re: Recommendation on bytea or blob for binary data like images