title: Java Regex remove new lines, but keep spaces.
body: <p>For the string <code>" \n a   b c \n 1  2   3 \n x y  z "</code> I need it to become <code>"a b c 1 2 3 x y z"</code>.</p>
  
  <p>Using this regex str.replaceAll("(\s|\n)", ""); I can get "abc123xyz", but how can I get spaces in between.</p>