Rather than hand rolling your own (possibly questionable) regex, you might be interested in looks_like_number from the Scalar::Util module which will return true if perl itself would treat the contents as a number.
The cake is a lie.
The cake is a lie.
The cake is a lie.
In reply to Re: Stupid regex question - numerics
by Fletch
in thread Stupid regex question - numerics
by ultranerds
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |