in reply to Re: Re: line endings in remote documents
in thread line endings in remote documents

Or, if you're sure no \ns or \rs will appear in the middle of lines, you can do it even more simply:

split /[\n\r]+/, ...