From: Bil Kleb Date: 2007-05-02T22:15:04+09:00 Subject: Re: Inverse scanf: finding format specifers of existing fields Xavier Noria wrote: > > Then I think you could base the solution on String#index/regexps > depending on the existence of "e" and ".", since we can assume numbers > are well-formed. The idea would be: > > if none > %d > elsif "e" > %e > else > %f with computed widths > end This, coupled with Robert's computed field lengths is beginning to look tractable... Thanks, -- Bil Kleb http://fun3d.larc.nasa.gov