title: Regular expression to replace (") with (\")?
body: <p>Why does the following not work:</p>
  
  <pre><code>      String test = "hello\"world".replaceAll("\"", "\\\"");
        System.out.println(test);
  </code></pre>
  
  <p>What I'm trying to do is replace any occurrence of <code>"</code> with <code>\"</code>.</p>
  
  <p>So I want to get as output:</p>
  
  <pre><code>hello\"world
  </code></pre>