in reply to Re: Matching floats according to perlfaq4
in thread Matching floats according to perlfaq4


You are right. A look ahead is required in the second regex:     /^[+-]?(?=\d|\.\d)\d*(?:\.\d*)?(?:[Ee][+-]?\d+)?$/

--
John.