For example:
\"I don\'t like these \"double\" quotes\"
and I want the output to be
I don\'t like these double quotes
You don't need regex for this. Just a character-by-character replace is sufficient. You can use String#replace() for this.
String replaced = original.replace("\"", " ");
Note that you can also use an empty string ""
instead to replace with. Else the spaces would double up.
String replaced = original.replace("\"", "");