in reply to how to split data by ^M^M

I hope there are no literal ^Ms in your file, but actually carriage return characters that your editor displays as ^M.

If that's the case you can split on \n\r\n\r. If not, you have to split on /\n\^M\n\^M/

Your code doesn't work because there's a newline between the two ^M's.

Replies are listed 'Best First'.
Re^2: how to split data by ^M^M
by zwon (Abbot) on Jul 09, 2009 at 17:57 UTC

    beg me pardon, but isn't it \r\n\r\n?

      Yes, you're right.