"\n" is usually ignored in regular expressions, unless the /s flag is set at the end (as you would the /g flag). However in this case I would have thought that s/\r//g would be sufficient.
Update: although maybe s/\r\n?//s; is needed here (I'm having difficulty in reproducing the data here).