Raw Strings
Raw strings — literal strings where backslashes are not escapes.
Syntax
rawString = "r" (singleQuotedRaw | doubleQuotedRaw)
singleQuotedRaw = "'" { character | doubleSingleQuote } "'"
doubleQuotedRaw = '"' { character | doubleDoubleQuote } '"'
character = any Unicode code point except the enclosing quote
doubleSingleQuote = "''" (a single quote inside a single-quoted raw string)
doubleDoubleQuote = '""' (a double quote inside a double-quoted raw string)Structural characters
Symbol
Name
Unicode
Description
Valid forms
Optional behaviors
Comments
Invalid forms
Preservation of structure
See Also
Last updated
Was this helpful?
