title: Representing carriage returns and quotes with regular expressions in java
body: <p>I want to replace a carriage return followed by quotation marks with just quotation marks.  For example, if I have:</p>
  
  <pre><code>Hello World
  "Hello World"
  </code></pre>
  
  <p>I would like the result to be:</p>
  
  <pre><code>Hello World"Hello World"
  </code></pre>
  
  <p>This is my attempt, where String text is what I have above:</p>
  
  <pre><code>String adjusted = text.replaceAll("[\n][\"], "\"");
  </code></pre>
  
  <p>However, my IDE does not accept this.
  Thanks for the help!</p>