R
Rick Tan
i need to a include a double quote in a string without it being escaped.
For example
astring="first few characters"
bstring="last characters"
When i tried
newstring = astring + '"' + bstring + '"'
newstring ended up as 'first few characters\"last characters\"'
What trick can i use to obtain a string 'first few characters "last
characters"' out of the 2 string variables. That is for ruby not to
escaped the double quote.
Thanks in advance.
For example
astring="first few characters"
bstring="last characters"
When i tried
newstring = astring + '"' + bstring + '"'
newstring ended up as 'first few characters\"last characters\"'
What trick can i use to obtain a string 'first few characters "last
characters"' out of the 2 string variables. That is for ruby not to
escaped the double quote.
Thanks in advance.