roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in
message <g1c7ut$8mj$1@canopus.cc.umanitoba.ca>...
> In article <g1c4sp$sk7$1@fred.mathworks.com>,
> Sebastian Gatzka
<sebastian.gatzka.NOSPAM@stud.tu-darmstadt.de> wrote:
> >Another question.
>
> >How can I read files which contain many 'blocks' like this:
>
> > deltaT = 0.001
> > Time = 0.001
>
> > barycenter at time 0.001 s is 0.3 m
> > ExecutionTime = 2.61 s ClockTime = 3 s
>
> >I need the values of 'time' and the 'location of the
> >barycenter'. In this case 0.001s and 0.3m.
>
> >So there are many lines and characters to skip.
>
> >How can this be done?
>
> I'd be tempted just to read in the entire file into a single
> variable, and then to use the regexp facilities to extract
> the information I was looking for.
>
> That or tempted to write a little perl routine that did
the same
> kind of extraction, outputing into a form that was easier
to read.
>
> --
> "The quirks and arbitrariness we observe force us to the
> conclusion that ours is not the only universe." --
Walter Kistler

I have read the help for regexp four times now, but I don't
think I understand it.