[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] Could be fun(ny|nier)?



On Tue, May 02, 2000 at 03:56:35PM -0400, Bill Jones wrote:
> > Something like this?
> > /^ *[+-]?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)? *$/;
> 
> 
> yes :)  That matches Integers or Floating points...
> 
> (But it also matches 3.14.15, and such.  No biggie, I can
>  test for multiple dots, etc....)

Um, no it doesn't...  That regex only matches a single period.

Ronald

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe