From: Antonio Cangiano Date: 2006-02-05T21:03:19+09:00 Subject: Re: Scanning a string for decimal numbers > a.scan /[-+]?[0-9]*\,?[0-9]+/ Or to be less verbose you can use \d in place of [0-9] :-) HTH Antonio -- Zen and the Art of Ruby Programming http://www.antoniocangiano.com