title: Properly match a Java string literal
body: <p>I am looking for a Regular expression to match string literals in Java source code.</p>
  
  <p>Is it possible?</p>
  
  <pre><code>private String Foo = "A potato";
  private String Bar = "A \"car\"";
  </code></pre>
  
  <p>My intent is to replace all strings within another string with something else. Using:</p>
  
  <pre><code>String A = "I went to the store to buy a \"coke\"";
  String B = A.replaceAll(REGEX,"Pepsi");
  </code></pre>
  
  <p>Something like this.</p>