in reply to Re: split based upon string
in thread split based upon string

This looks alot like a MIME mail message format. Have you searched CPAN for a MIME parser. Like "MIME::Parser".