From: Josef 'Jupp' SCHUGT Date: 2006-02-12T07:43:24+09:00 Subject: Re: Scanning a string for decimal numbers Hi! At Sun, 05 Feb 2006 11:43:52 +0000, Antonio Cangiano wrote: > a.scan /[-+]?[0-9]*\,?[0-9]+/ Shouldn't that rather be the following? a.scan /[-+]?([1-9]\d*(\,[0-9]+)?)|(0(\,[0-9]+)?)/ Josef 'Jupp' Schugt -- Let the origin be the middle of the earth, p(x,r) be the probability density for finding person x at distance r. Make sure that a permanent solution of int_0^R p(x,r) dr < 1 exists for R being the instantanous value of the distance between earth and mars.