X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id C7462D7257 for ; Mon, 5 Sep 2005 11:19:42 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 08761-05 for ; Mon, 5 Sep 2005 14:19:37 +0000 (GMT) Received: from gauss.credativ.com (ipx11302.ipxserver.de [212.112.227.254]) by svr1.postgresql.org (Postfix) with ESMTP id D3F2AD7120 for ; Mon, 5 Sep 2005 11:19:37 -0300 (ADT) Received: from bell.credativ.de (p508955D6.dip.t-dialin.net [80.137.85.214]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by gauss.credativ.com (Postfix) with ESMTP id 7D9CBD7656; Mon, 5 Sep 2005 16:24:00 +0200 (CEST) From: Peter Eisentraut To: Aldor Subject: Re: POSIX Regular Expression question Date: Mon, 5 Sep 2005 16:19:28 +0200 User-Agent: KMail/1.8.1 Cc: pgsql-sql@postgresql.org References: <431C4EB2.80401@mediaroot.de> In-Reply-To: <431C4EB2.80401@mediaroot.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200509051619.29210.peter_e@gmx.net> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 required=5 tests=[AWL=-0.000, FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200509/33 X-Sequence-Number: 22580 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/