title: Replace " with \"
body: <p>How do I replace " with \".</p>
  
  <p>Here is what im trying : </p>
  
  <pre><code>def main(args:Array[String]) = {      
    val line:String = "replace \" quote";
    println(line);
    val updatedLine = line.replaceAll("\"" , "\\\"");
    println(updatedLine);
  }
  </code></pre>
  
  <p>output : </p>
  
  <pre><code>replace " quote
  replace " quote
  </code></pre>
  
  <p>The output should be : </p>
  
  <pre><code>replace " quote
  replace \" quote
  </code></pre>