This rule looks rather broken to me. You're matching the string `\n`, the string `\r` followed by a newline, or anything that's not a newline. And it's greedy.