From: Josh Berkus <josh@agliodbs.com>
To: olly@lfix.co.uk, Theo Galanakis <Theo.Galanakis@lonelyplanet.com.au>
Cc: pgsql-sql@postgresql.org
Subject: Re: Isnumeric function?
Date: Wed, 8 Sep 2004 09:47:17 -0700
Message-ID: <200409080947.17682.josh@agliodbs.com> (raw)
In-Reply-To: <1094537126.6360.279.camel@linda>
References: <82E30406384FFB44AFD1012BAB230B55037D056E@shiva.au.lpint.net>
<1094537126.6360.279.camel@linda>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: josh@agliodbs.com, Theo.Galanakis@lonelyplanet.com.au
Subject: Re: Isnumeric function?
In-Reply-To: <200409080947.17682.josh@agliodbs.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox