X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 7279D329D95 for ; Wed, 8 Sep 2004 17:50:56 +0100 (BST) 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 49833-10 for ; Wed, 8 Sep 2004 16:50:54 +0000 (GMT) Received: from davinci.ethosmedia.com (server226.ethosmedia.com [209.128.84.226]) by svr1.postgresql.org (Postfix) with ESMTP id 1024E329D91 for ; Wed, 8 Sep 2004 17:50:40 +0100 (BST) Received: from [63.195.55.98] (HELO spooky) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.1.8) with ESMTP id 6302355; Wed, 08 Sep 2004 09:51:57 -0700 Content-Type: text/plain; charset="iso-8859-1" From: Josh Berkus Organization: Aglio Database Solutions To: olly@lfix.co.uk, Theo Galanakis Subject: Re: Isnumeric function? Date: Wed, 8 Sep 2004 09:47:17 -0700 User-Agent: KMail/1.4.3 Cc: pgsql-sql@postgresql.org References: <82E30406384FFB44AFD1012BAB230B55037D056E@shiva.au.lpint.net> <1094537126.6360.279.camel@linda> In-Reply-To: <1094537126.6360.279.camel@linda> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200409080947.17682.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200409/46 X-Sequence-Number: 18892 Oliver, Theo: > ~ '^[0-9]+$' Actually, I usually do: ~ '^[0-9]+\.?[0-9]*$' ... to include decimals. However, the above assumes that there is at least a "0" before the decimal; it would be nice to adapt it to matching a leading decimal (i.e. .057 ) as well. Can't see any easy way, though ... -- Josh Berkus Aglio Database Solutions San Francisco