On Mon, Mar 19, 2001 at 09:13:04AM +0100, Detlef Lindenthal wrote:
> 
> Ronald J Kimball wrote:
> 
> > Still, I don't know why it would be preferable to
> > write a solution with these obscure limitations (which will be difficult to
> > debug if they're ever hit) when there's another approach which is correct
> > and robust.
> 
> >From my point of view: Because so far no pioneer showed us that other
> correct and robust approach. Are you thinking of AppleScript?
> And combined with that approach I could do text replacing using
> Perl Regex’? -- But how?
> Can you provide sample code?
> Perl is quick; is that other approach quick too?

I did provide sample code, in an earlier response to Alan.  The correct and
robust approach is to start at the beginning of the string and process the
sections in order.

Any approach that attempts to jump to a section in the middle risks a
section title appearing coincidentally in the content of some other
section.  This is why the section lengths are present in the data.

Ronald

Reply via email to