[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
how to display \" in string without starting/ending "-signs?
From: |
Thomas Morley |
Subject: |
how to display \" in string without starting/ending "-signs? |
Date: |
Sun, 13 Mar 2016 16:07:42 +0100 |
Hi all,
consider the following string: "bar\"foo\"buzz"
I want to display it like: bar\"foo\"buzz
Using display or write doesn't give me the needed result:
(define strg "bar\"foo\"buzz")
(newline)
(display strg)
(newline)
(write strg)
returns:
bar"foo"buzz
"bar\"foo\"buzz"
I can make it work with:
(display (string-join (string-split strg #\" ) "\\\""))
->bar\"foo\"buzz
Is there any better way?
Cheers,
Harm
- how to display \" in string without starting/ending "-signs?,
Thomas Morley <=