in reply to Re: using lookaround assertions to grab info
in thread using lookaround assertions to grab info
Perhaps you want to split on /\n\b/. That will require new records to begin with a word char (because \n is not a word char).I am not sure how this helps me. In the example I have provided above, I have added the newlines. In reality, the email message is provided to me as a scalar, with all the newlines and all in it already. I just use Mail::IMAPClient to grab the message.
As I said, the code I have above works fine even with splitting on newlines. Where it fails is its inability to "lookbehind" when it encounters a line without a label -- something that looks like so --
I believe that when I encounter a line like above, I have to lookbehind and say, "Ha, this line doesn't begin with a label, hence it is just a continuation of the value of the previous label.": sometext
This is where I am lost.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: using lookaround assertions to grab info
by Roy Johnson (Monsignor) on Jun 03, 2004 at 22:00 UTC | |
by punkish (Priest) on Jun 03, 2004 at 22:08 UTC |