Can anyone tell me if there is a way of specifying alternative
characters to use as the quote character? I am reading in a string
which may already have both double and single quotes in it, so I am
wanting to temporarily designate another character to use to wrap the
string to I don't prematurely terminate the string.
I know it can be done in Perl by using qq![string text here]! which
in this case will enable the bang to be treated as a quote (any
character can be used here, not just a bang, so you would pick one
that you knew wouldn't be in the string. How do I do something
similar in Java.