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