Jeff,
What needs to be changed in /(-?\d+\.?\d*)/ so that it also see number like .59?
This is why I like to recommend Regexp::Common. But...
Here is an example from Jeffrey Friedl's, "Mastering Regular Expressions":
/-?([0-9]+(\.[0-9]*)?|\.[0-9]+)/
perlified:
/-?(?:\d+(?:\.\d*)?|\.\d+)/
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>