Tag Archives: string escape sequences

Strings (Part 2)

The types of substitution can be easily seen such as; strings inside a single quote have two consecutive backslashes interpreted as one, a backslash followed by a single quote is interpreted as a single quote and so on and so forth as shown below.
‘escape using “\\”‘ >> escape using “\”
‘That\’s right’ >> That’s right
Stings that are double-quoted have the [...]

Posted in Development, Programming Basics | Also tagged | Comments closed