title: Trying to replace newline in StringBuilder
body: <p>I am trying to replace all NewLines in a StringBuilder with nothing, and I thought this would work...but it doesn't.</p>
  
  <pre><code>Pattern replace = Pattern.compile("\\n");
  Matcher matcher2 = replace.matcher(sb);
  matcher2.replaceAll("");
  </code></pre>
  
  <p>What am I missing?
  Thanks</p>