This is a faq. Try some of the other possibilities listed from perldoc -q number.
My personal recommendation is to use Scalar::Util. It includes a routine looks_like_number that will handle anything that Perl thinks is a number.
In reply to Re: number regex (incl sci notation)
by VSarkiss
in thread number regex (incl sci notation)
by jim_neophyte
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |