From: Xavier Noria Date: 2006-02-05T21:14:46+09:00 Subject: Re: Scanning a string for decimal numbers On Feb 5, 2006, at 13:03, Antonio Cangiano wrote: >> a.scan /[-+]?[0-9]*\,?[0-9]+/ > > Or to be less verbose you can use \d in place of [0-9] :-) If you have Perl installed, the incantation perldoc -q float gives some regexps for numbers. -- fxn