Pretty basic question for someone who knows.
Instead of getting from
\"This is my text. And here is a ne
Try
L.replaceAll("(\\t|\\r?\\n)+", " ");
Depending on the system a linefeed is either \r\n or just \n.
\r\n
\n