in reply to Stupid regex question - numerics

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.