I am not sure I completely follow what your trying to do, if you could explain a little more it would be easier to help.
\r is carriage return and \
is line feed.
I won't go into the difference between them and how they work, as its mainly connected how printers was working a long time ago. Plus of course you can use them still in some consoles as well.
In the general scope, the difference with them on what your trying to do (assume web development, or creating documents) is:
is line separator in Unix
is line separator in Windows
\r is used by Mac up to OS 9
is used from Mac OS X