in reply to Re^2: using lookaround assertions to grab info
in thread using lookaround assertions to grab info

In reality, the email message is provided to me as a scalar, with all the newlines and all in it already.
And you want to split on those newlines, except where the next line doesn't begin with a letter. You want those lines that don't begin with a letter not to be split from the previous lines.

Maybe you should just try it and see what you get.


The PerlMonk tr/// Advocate
  • Comment on Re^3: using lookaround assertions to grab info

Replies are listed 'Best First'.
Re^4: using lookaround assertions to grab info
by punkish (Priest) on Jun 03, 2004 at 22:08 UTC
    And you want to split on those newlines, except where the next line doesn't begin with a letter. You want those lines that don't begin with a letter not to be split from the previous lines. Maybe you should just try it and see what you get.
    I tried. And... Sweet. This works just swell. I wish I could vote more than once for your tip for what I learned from it.

    Many thanks.