'How to substitute values ​enclosed in double quotes

I need to substitute values ​​enclosed in double quotes. The goal is to replace commas with question marks and replace double quotes surrounded by double quotes with hyphens.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source