in reply to Write a Loop

FYI: I've given this another look and just can't make sense out of your data. Am I to believe that some lines do actually start with "+", and that some words are broken up like this?

ended June 30, 2001 in conformity with accounting principles generall + Intel +y accepted

Is that how your input data really looks? I mean I'm thinking those "+" characters must have showed up when you copied and pasted the text from some other node. And how did "Intel" get placed between "generall" and "y"?

If that's how your data really looks, then I might be able to get started, except that your specification is also ambiguous.

I don't want to spend another moment trying to come up with a solution if your input data is wrong. You're only going to get help if you post an answerable question. Double-posting doesn't make it more answerable. It just makes it more annoying.


Dave

Replies are listed 'Best First'.
Re^2: Write a Loop
by perlyr (Novice) on Jul 23, 2012 at 17:32 UTC
    Dave, you are right. This is not the original file, which is too big to post here. I just created this file to illustrate the problem. Right now, it gives me the last match, but not the first. I wanted the program to stop after the first match using "do...until". Do you have a solution? Thanks