Re: POSIX Regular Expression question

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Aldor <an(at)mediaroot(dot)de>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: POSIX Regular Expression question
Date: 2005-09-05 14:19:28
Message-ID: 200509051619.29210.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message A. Kretschmer 2005-09-05 15:10:12 Re: POSIX Regular Expression question
Previous Message Michael Fuhr 2005-09-05 14:15:45 Re: POSIX Regular Expression question