Seeking assistance with a regular expression problem. I need help replacing the following:
{"name": "Raul "the cat" Gonzalez"}
With this:
{"name": "Raul \"the cat\" Gonzalez"}
I require this modification for server-side validations as I am utilizing a web service to store JSON data in the database. It is essential for me to have this flexibility in the web service so that I can input:
{"name": "Raul "the cat" Gonzalez"}
And have it automatically converted to:
{"name": "Raul \"the cat\" Gonzalez"} //inner quotes escaped