in reply to Re: Matching floats according to perlfaq4
in thread Matching floats according to perlfaq4
==
/^[+-]?(\d+\.\d*|\d*\.\d+)(e[+-]?\d+)?$/iThe look-ahead is to ensure that a '.' on its own isn't matched, but that (eg) '.04' and '4.' is. I'm not sure how correct the latter form is. The e+3, E-2 etc bit may or may not match; I don't think (example) '1.2e' on its own is meaningful.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Matching floats according to perlfaq4
by Anonymous Monk on Sep 25, 2002 at 12:54 UTC | |
|
Re: Re: Re: Matching floats according to perlfaq4
by demerphq (Chancellor) on Sep 27, 2002 at 11:28 UTC |