Shouldn’t it be (\r\n)+|\r+|\n+?

“+” will only apply to the immediately preceding character. “\r\n” needs to be grouped. I believe “\r\n+” is functionally equivalent to “\r\n|\n+”.