Data una stringa, sostituisci tutte le virgolette doppie a sinistra in due backtick e tutte le virgolette doppie a destra in due virgolette singole.
Virgolette a sinistra indica le virgolette che iniziano una citazione. Virgolette a destra indica le virgolette che terminano una citazione. Le citazioni non possono essere nidificate. Puoi presumere che ci siano un numero pari di virgolette doppie nella stringa.
Esempi
Ingresso:
"To be or not to be," quoth the Bard, "that
is the question".
The programming contestant replied: "I must disagree.
To `C' or not to `C', that is The Question!"
Produzione:
``To be or not to be,'' quoth the Bard, ``that
is the question''.
The programming contestant replied: ``I must disagree.
To `C' or not to `C', that is The Question!''