From: Peter Bunyan Date: 2007-11-23T04:11:51+09:00 Subject: Re: Checking whether a string is a number in disguise? OK, this seems to work: class String def is_number? Float(self) == self.to_f rescue false end end -- Posted via http://www.ruby-forum.com/.