johnajb has asked for the wisdom of the Perl Monks concerning the following question:

removed for formatting se re6 deleting del
  • Comment on please help!!! delete the first few lines of an email without deleting the following lines.

Replies are listed 'Best First'.
Re: delete the first few lines of an email without deleting the following lines.
by saintmike (Vicar) on Feb 19, 2005 at 04:18 UTC
    If you really want to use a regex, use something like
    $emailtext =~ s/^(.*?)?=Content-Transfer-Encoding//s;
    but I'd rather recommend parsing it with Mail::Internet.
    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: please help!!! delete the first few lines of an email without deleting the following lines.
by b10m (Vicar) on Feb 19, 2005 at 11:00 UTC

    Due to your oddly formatted node, it's hard to figure out what exactly you want and have right now, but I bet Mail::Box can help you out a big deal.

    --
    b10m

    All code is usually tested, but rarely trusted.