i have quotes inside a string like this
string1="blah blah blah " some' thi'ng " end of string "
how do i make sure the quotes are included in there?
please note i have both doubel and single quotes in there
i have quotes inside a string like this
string1="blah blah blah " some' thi'ng " end of string "
how do i make sure the quotes are included in there?
please note i have both doubel and single quotes in there
Triple quotes are harder to break.
string1="""blah blah blah " some' thi'ng " end of string """
if you don't want to go through the whole string putting a backslash before every offending quote, i'd enclose the string in triple quotes. this is especially good for a string that will span several lines.