[Israel.pm] number recognizer
Offer Kaye
oferk at oren.co.il
Tue May 18 00:56:24 PDT 2004
> Hello,
>
> I'm looking for a Perl Regular expression that recognizes
> numbers (integers, fractions, scientific, etc.).
>
> Examples (surely there are other possibilities which are not
> covered):
>
> 7
> 0.49
> -25
> -3.134954
> .57
> 3E9
> -.3e-19
>
> Thanks.
>
> --
> Shlomo Yona
Check out perlfaq4, the question: "How do I determine whether a scalar is a
number/whole/integer/float?"
----------------------------------
Offer Kaye
More information about the Perl
mailing list