From: nobu.nokada@... Date: 2002-01-11T01:37:13+09:00 Subject: Re: regexen for strings that can be converted to numbers Hi, At Fri, 11 Jan 2002 00:58:17 +0900, Tobias Reif wrote: > what are the regexen for strings that can be converted to various types > of numbers? > > Or: how can the following be extended and/or corrected? class String def to_number Integer(self) rescue Float(self) rescue self end end -- Nobu Nakada